python-k8sclient-0.4.0/0000775000567000056710000000000013046233470016101 5ustar jenkinsjenkins00000000000000python-k8sclient-0.4.0/k8sclient/0000775000567000056710000000000013046233470020005 5ustar jenkinsjenkins00000000000000python-k8sclient-0.4.0/k8sclient/templates/0000775000567000056710000000000013046233470022003 5ustar jenkinsjenkins00000000000000python-k8sclient-0.4.0/k8sclient/templates/batch_v1.json0000664000567000056710000031242113046233226024367 0ustar jenkinsjenkins00000000000000{ "swaggerVersion": "1.2", "apiVersion": "batch/v1", "basePath": "https://127.0.0.1:443", "resourcePath": "/apis/batch/v1", "apis": [ { "path": "/apis/batch/v1/namespaces/{namespace}/jobs", "description": "API at /apis/batch/v1", "operations": [ { "type": "v1.JobList", "method": "GET", "summary": "list or watch objects of kind Job", "nickname": "listNamespacedJob", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.JobList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Job", "method": "POST", "summary": "create a Job", "nickname": "createNamespacedJob", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Job", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Job" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete collection of Job", "nickname": "deletecollectionNamespacedJob", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/batch/v1/watch/namespaces/{namespace}/jobs", "description": "API at /apis/batch/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of Job", "nickname": "watchNamespacedJobList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/batch/v1/namespaces/{namespace}/jobs/{name}", "description": "API at /apis/batch/v1", "operations": [ { "type": "v1.Job", "method": "GET", "summary": "read the specified Job", "nickname": "readNamespacedJob", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "export", "description": "Should this value be exported. Export strips fields that a user can not specify.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "exact", "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Job", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Job" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Job", "method": "PUT", "summary": "replace the specified Job", "nickname": "replaceNamespacedJob", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Job", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Job", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Job" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Job", "method": "PATCH", "summary": "partially update the specified Job", "nickname": "patchNamespacedJob", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Job", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Job" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete a Job", "nickname": "deleteNamespacedJob", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.DeleteOptions", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Job", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}", "description": "API at /apis/batch/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch changes to an object of kind Job", "nickname": "watchNamespacedJob", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Job", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/batch/v1/jobs", "description": "API at /apis/batch/v1", "operations": [ { "type": "v1.JobList", "method": "GET", "summary": "list or watch objects of kind Job", "nickname": "listJob", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.JobList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/batch/v1/watch/jobs", "description": "API at /apis/batch/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of Job", "nickname": "watchJobList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status", "description": "API at /apis/batch/v1", "operations": [ { "type": "v1.Job", "method": "PUT", "summary": "replace status of the specified Job", "nickname": "replaceNamespacedJobStatus", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Job", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Job", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Job" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/batch/v1", "description": "API at /apis/batch/v1", "operations": [ { "type": "void", "method": "GET", "summary": "get available resources", "nickname": "getAPIResources", "parameters": [], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json", "application/yaml" ] } ] } ], "models": { "v1.JobList": { "id": "v1.JobList", "description": "JobList is a collection of jobs.", "required": [ "items" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "items": { "type": "array", "items": { "$ref": "v1.Job" }, "description": "Items is the list of Job." } } }, "unversioned.ListMeta": { "id": "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": { "selfLink": { "type": "string", "description": "SelfLink is a URL representing this object. Populated by the system. Read-only." }, "resourceVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency" } } }, "v1.Job": { "id": "v1.Job", "description": "Job represents the configuration of a single job.", "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1.JobSpec", "description": "Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" }, "status": { "$ref": "v1.JobStatus", "description": "Status is a structure describing current status of a job. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1.ObjectMeta": { "id": "v1.ObjectMeta", "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", "properties": { "name": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" }, "generateName": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#idempotency" }, "namespace": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md" }, "selfLink": { "type": "string", "description": "SelfLink is a URL representing this object. Populated by the system. Read-only." }, "uid": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#uids" }, "resourceVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency" }, "generation": { "type": "integer", "format": "int64", "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only." }, "creationTimestamp": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#metadata" }, "deletionTimestamp": { "type": "string", "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 will be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. Once the resource is deleted in the API, the Kubelet will send a hard termination signal to the container. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "deletionGracePeriodSeconds": { "type": "integer", "format": "int64", "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." }, "labels": { "type": "object", "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://releases.k8s.io/release-1.2/docs/user-guide/labels.md" }, "annotations": { "type": "object", "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://releases.k8s.io/release-1.2/docs/user-guide/annotations.md" } } }, "v1.JobSpec": { "id": "v1.JobSpec", "description": "JobSpec describes how the job execution will look like.", "required": [ "template" ], "properties": { "parallelism": { "type": "integer", "format": "int32", "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) \u003c .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://releases.k8s.io/release-1.2/docs/user-guide/jobs.md" }, "completions": { "type": "integer", "format": "int32", "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://releases.k8s.io/release-1.2/docs/user-guide/jobs.md" }, "activeDeadlineSeconds": { "type": "integer", "format": "int64", "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" }, "selector": { "$ref": "v1.LabelSelector", "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://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors" }, "manualSelector": { "type": "boolean", "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/release-1.2/docs/design/selector-generation.md" }, "template": { "$ref": "v1.PodTemplateSpec", "description": "Template is the object that describes the pod that will be created when executing a job. More info: http://releases.k8s.io/release-1.2/docs/user-guide/jobs.md" } } }, "v1.LabelSelector": { "id": "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": { "matchLabels": { "type": "object", "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." }, "matchExpressions": { "type": "array", "items": { "$ref": "v1.LabelSelectorRequirement" }, "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed." } } }, "v1.LabelSelectorRequirement": { "id": "v1.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": { "type": "string", "description": "key is the label key that the selector applies to." }, "operator": { "type": "string", "description": "operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist." }, "values": { "type": "array", "items": { "type": "string" }, "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." } } }, "v1.PodTemplateSpec": { "id": "v1.PodTemplateSpec", "description": "PodTemplateSpec describes the data a pod should have when created from a template", "properties": { "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1.PodSpec", "description": "Specification of the desired behavior of the pod. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1.PodSpec": { "id": "v1.PodSpec", "description": "PodSpec is a description of a pod.", "required": [ "containers" ], "properties": { "volumes": { "type": "array", "items": { "$ref": "v1.Volume" }, "description": "List of volumes that can be mounted by containers belonging to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md" }, "containers": { "type": "array", "items": { "$ref": "v1.Container" }, "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://releases.k8s.io/release-1.2/docs/user-guide/containers.md" }, "restartPolicy": { "type": "string", "description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#restartpolicy" }, "terminationGracePeriodSeconds": { "type": "integer", "format": "int64", "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." }, "activeDeadlineSeconds": { "type": "integer", "format": "int64", "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." }, "dnsPolicy": { "type": "string", "description": "Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\"." }, "nodeSelector": { "type": "object", "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://releases.k8s.io/release-1.2/docs/user-guide/node-selection/README.md" }, "serviceAccountName": { "type": "string", "description": "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/release-1.2/docs/design/service_accounts.md" }, "serviceAccount": { "type": "string", "description": "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead." }, "nodeName": { "type": "string", "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." }, "hostNetwork": { "type": "boolean", "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." }, "hostPID": { "type": "boolean", "description": "Use the host's pid namespace. Optional: Default to false." }, "hostIPC": { "type": "boolean", "description": "Use the host's ipc namespace. Optional: Default to false." }, "securityContext": { "$ref": "v1.PodSecurityContext", "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." }, "imagePullSecrets": { "type": "array", "items": { "$ref": "v1.LocalObjectReference" }, "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://releases.k8s.io/release-1.2/docs/user-guide/images.md#specifying-imagepullsecrets-on-a-pod" } } }, "v1.Volume": { "id": "v1.Volume", "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", "required": [ "name" ], "properties": { "name": { "type": "string", "description": "Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" }, "hostPath": { "$ref": "v1.HostPathVolumeSource", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath" }, "emptyDir": { "$ref": "v1.EmptyDirVolumeSource", "description": "EmptyDir represents a temporary directory that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir" }, "gcePersistentDisk": { "$ref": "v1.GCEPersistentDiskVolumeSource", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk" }, "awsElasticBlockStore": { "$ref": "v1.AWSElasticBlockStoreVolumeSource", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore" }, "gitRepo": { "$ref": "v1.GitRepoVolumeSource", "description": "GitRepo represents a git repository at a particular revision." }, "secret": { "$ref": "v1.SecretVolumeSource", "description": "Secret represents a secret that should populate this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets" }, "nfs": { "$ref": "v1.NFSVolumeSource", "description": "NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs" }, "iscsi": { "$ref": "v1.ISCSIVolumeSource", "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/release-1.2/examples/iscsi/README.md" }, "glusterfs": { "$ref": "v1.GlusterfsVolumeSource", "description": "Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md" }, "persistentVolumeClaim": { "$ref": "v1.PersistentVolumeClaimVolumeSource", "description": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims" }, "rbd": { "$ref": "v1.RBDVolumeSource", "description": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md" }, "flexVolume": { "$ref": "v1.FlexVolumeSource", "description": "FlexVolume represents a generic volume resource that is provisioned/attached using a exec based plugin. This is an alpha feature and may change in future." }, "cinder": { "$ref": "v1.CinderVolumeSource", "description": "Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md" }, "cephfs": { "$ref": "v1.CephFSVolumeSource", "description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime" }, "flocker": { "$ref": "v1.FlockerVolumeSource", "description": "Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running" }, "downwardAPI": { "$ref": "v1.DownwardAPIVolumeSource", "description": "DownwardAPI represents downward API about the pod that should populate this volume" }, "fc": { "$ref": "v1.FCVolumeSource", "description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod." }, "azureFile": { "$ref": "v1.AzureFileVolumeSource", "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod." }, "configMap": { "$ref": "v1.ConfigMapVolumeSource", "description": "ConfigMap represents a configMap that should populate this volume" } } }, "v1.HostPathVolumeSource": { "id": "v1.HostPathVolumeSource", "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", "required": [ "path" ], "properties": { "path": { "type": "string", "description": "Path of the directory on the host. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath" } } }, "v1.EmptyDirVolumeSource": { "id": "v1.EmptyDirVolumeSource", "description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", "properties": { "medium": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir" } } }, "v1.GCEPersistentDiskVolumeSource": { "id": "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": [ "pdName" ], "properties": { "pdName": { "type": "string", "description": "Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk" }, "fsType": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk" }, "partition": { "type": "integer", "format": "int32", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk" }, "readOnly": { "type": "boolean", "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk" } } }, "v1.AWSElasticBlockStoreVolumeSource": { "id": "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": { "volumeID": { "type": "string", "description": "Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore" }, "fsType": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore" }, "partition": { "type": "integer", "format": "int32", "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)." }, "readOnly": { "type": "boolean", "description": "Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore" } } }, "v1.GitRepoVolumeSource": { "id": "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": { "repository": { "type": "string", "description": "Repository URL" }, "revision": { "type": "string", "description": "Commit hash for the specified revision." }, "directory": { "type": "string", "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." } } }, "v1.SecretVolumeSource": { "id": "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": { "secretName": { "type": "string", "description": "Name of the secret in the pod's namespace to use. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets" } } }, "v1.NFSVolumeSource": { "id": "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": { "server": { "type": "string", "description": "Server is the hostname or IP address of the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs" }, "path": { "type": "string", "description": "Path that is exported by the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs" }, "readOnly": { "type": "boolean", "description": "ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs" } } }, "v1.ISCSIVolumeSource": { "id": "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" ], "properties": { "targetPortal": { "type": "string", "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)." }, "iqn": { "type": "string", "description": "Target iSCSI Qualified Name." }, "lun": { "type": "integer", "format": "int32", "description": "iSCSI target lun number." }, "iscsiInterface": { "type": "string", "description": "Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport." }, "fsType": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#iscsi" }, "readOnly": { "type": "boolean", "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false." } } }, "v1.GlusterfsVolumeSource": { "id": "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": { "type": "string", "description": "EndpointsName is the endpoint name that details Glusterfs topology. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod" }, "path": { "type": "string", "description": "Path is the Glusterfs volume path. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod" }, "readOnly": { "type": "boolean", "description": "ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod" } } }, "v1.PersistentVolumeClaimVolumeSource": { "id": "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": { "type": "string", "description": "ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims" }, "readOnly": { "type": "boolean", "description": "Will force the ReadOnly setting in VolumeMounts. Default false." } } }, "v1.RBDVolumeSource": { "id": "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", "pool", "user", "keyring", "secretRef" ], "properties": { "monitors": { "type": "array", "items": { "type": "string" }, "description": "A collection of Ceph monitors. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" }, "image": { "type": "string", "description": "The rados image name. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" }, "fsType": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#rbd" }, "pool": { "type": "string", "description": "The rados pool name. Default is rbd. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it." }, "user": { "type": "string", "description": "The rados user name. Default is admin. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" }, "keyring": { "type": "string", "description": "Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" }, "secretRef": { "$ref": "v1.LocalObjectReference", "description": "SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is empty. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" }, "readOnly": { "type": "boolean", "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" } } }, "v1.LocalObjectReference": { "id": "v1.LocalObjectReference", "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", "properties": { "name": { "type": "string", "description": "Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" } } }, "v1.FlexVolumeSource": { "id": "v1.FlexVolumeSource", "description": "FlexVolume represents a generic volume resource that is provisioned/attached using a exec based plugin. This is an alpha feature and may change in future.", "required": [ "driver" ], "properties": { "driver": { "type": "string", "description": "Driver is the name of the driver to use for this volume." }, "fsType": { "type": "string", "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." }, "secretRef": { "$ref": "v1.LocalObjectReference", "description": "Optional: SecretRef is reference to the authentication secret for User, default is empty." }, "readOnly": { "type": "boolean", "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts." }, "options": { "type": "object", "description": "Optional: Extra command options if any." } } }, "v1.CinderVolumeSource": { "id": "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": { "volumeID": { "type": "string", "description": "volume id used to identify the volume in cinder More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md" }, "fsType": { "type": "string", "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/release-1.2/examples/mysql-cinder-pd/README.md" }, "readOnly": { "type": "boolean", "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md" } } }, "v1.CephFSVolumeSource": { "id": "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": { "type": "array", "items": { "type": "string" }, "description": "Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it" }, "path": { "type": "string", "description": "Optional: Used as the mounted root, rather than the full Ceph tree, default is /" }, "user": { "type": "string", "description": "Optional: User is the rados user name, default is admin More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it" }, "secretFile": { "type": "string", "description": "Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it" }, "secretRef": { "$ref": "v1.LocalObjectReference", "description": "Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it" }, "readOnly": { "type": "boolean", "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it" } } }, "v1.FlockerVolumeSource": { "id": "v1.FlockerVolumeSource", "description": "Represents a Flocker volume mounted by the Flocker agent. Flocker volumes do not support ownership management or SELinux relabeling.", "required": [ "datasetName" ], "properties": { "datasetName": { "type": "string", "description": "Required: the volume name. This is going to be store on metadata -\u003e name on the payload for Flocker" } } }, "v1.DownwardAPIVolumeSource": { "id": "v1.DownwardAPIVolumeSource", "description": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", "properties": { "items": { "type": "array", "items": { "$ref": "v1.DownwardAPIVolumeFile" }, "description": "Items is a list of downward API volume file" } } }, "v1.DownwardAPIVolumeFile": { "id": "v1.DownwardAPIVolumeFile", "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", "required": [ "path", "fieldRef" ], "properties": { "path": { "type": "string", "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 '..'" }, "fieldRef": { "$ref": "v1.ObjectFieldSelector", "description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported." } } }, "v1.ObjectFieldSelector": { "id": "v1.ObjectFieldSelector", "description": "ObjectFieldSelector selects an APIVersioned field of an object.", "required": [ "fieldPath" ], "properties": { "apiVersion": { "type": "string", "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\"." }, "fieldPath": { "type": "string", "description": "Path of the field to select in the specified API version." } } }, "v1.FCVolumeSource": { "id": "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": { "targetWWNs": { "type": "array", "items": { "type": "string" }, "description": "Required: FC target world wide names (WWNs)" }, "lun": { "type": "integer", "format": "int32", "description": "Required: FC target lun number" }, "fsType": { "type": "string", "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." }, "readOnly": { "type": "boolean", "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts." } } }, "v1.AzureFileVolumeSource": { "id": "v1.AzureFileVolumeSource", "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", "required": [ "secretName", "shareName" ], "properties": { "secretName": { "type": "string", "description": "the name of secret that contains Azure Storage Account Name and Key" }, "shareName": { "type": "string", "description": "Share Name" }, "readOnly": { "type": "boolean", "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts." } } }, "v1.ConfigMapVolumeSource": { "id": "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": { "name": { "type": "string", "description": "Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" }, "items": { "type": "array", "items": { "$ref": "v1.KeyToPath" }, "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 '..'." } } }, "v1.KeyToPath": { "id": "v1.KeyToPath", "description": "Maps a string key to a path within a volume.", "required": [ "key", "path" ], "properties": { "key": { "type": "string", "description": "The key to project." }, "path": { "type": "string", "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 '..'." } } }, "v1.Container": { "id": "v1.Container", "description": "A single application container that you want to run within a pod.", "required": [ "name" ], "properties": { "name": { "type": "string", "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." }, "image": { "type": "string", "description": "Docker image name. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md" }, "command": { "type": "array", "items": { "type": "string" }, "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://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands" }, "args": { "type": "array", "items": { "type": "string" }, "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://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands" }, "workingDir": { "type": "string", "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." }, "ports": { "type": "array", "items": { "$ref": "v1.ContainerPort" }, "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." }, "env": { "type": "array", "items": { "$ref": "v1.EnvVar" }, "description": "List of environment variables to set in the container. Cannot be updated." }, "resources": { "$ref": "v1.ResourceRequirements", "description": "Compute Resources required by this container. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#resources" }, "volumeMounts": { "type": "array", "items": { "$ref": "v1.VolumeMount" }, "description": "Pod volumes to mount into the container's filesyste. Cannot be updated." }, "livenessProbe": { "$ref": "v1.Probe", "description": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes" }, "readinessProbe": { "$ref": "v1.Probe", "description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes" }, "lifecycle": { "$ref": "v1.Lifecycle", "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated." }, "terminationMessagePath": { "type": "string", "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." }, "imagePullPolicy": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/images.md#updating-images" }, "securityContext": { "$ref": "v1.SecurityContext", "description": "Security options the pod should run with. More info: http://releases.k8s.io/release-1.2/docs/design/security_context.md" }, "stdin": { "type": "boolean", "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." }, "stdinOnce": { "type": "boolean", "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" }, "tty": { "type": "boolean", "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false." } } }, "v1.ContainerPort": { "id": "v1.ContainerPort", "description": "ContainerPort represents a network port in a single container.", "required": [ "containerPort" ], "properties": { "name": { "type": "string", "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." }, "hostPort": { "type": "integer", "format": "int32", "description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 \u003c x \u003c 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this." }, "containerPort": { "type": "integer", "format": "int32", "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 \u003c x \u003c 65536." }, "protocol": { "type": "string", "description": "Protocol for port. Must be UDP or TCP. Defaults to \"TCP\"." }, "hostIP": { "type": "string", "description": "What host IP to bind the external port to." } } }, "v1.EnvVar": { "id": "v1.EnvVar", "description": "EnvVar represents an environment variable present in a Container.", "required": [ "name" ], "properties": { "name": { "type": "string", "description": "Name of the environment variable. Must be a C_IDENTIFIER." }, "value": { "type": "string", "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 \"\"." }, "valueFrom": { "$ref": "v1.EnvVarSource", "description": "Source for the environment variable's value. Cannot be used if value is not empty." } } }, "v1.EnvVarSource": { "id": "v1.EnvVarSource", "description": "EnvVarSource represents a source for the value of an EnvVar.", "properties": { "fieldRef": { "$ref": "v1.ObjectFieldSelector", "description": "Selects a field of the pod; only name and namespace are supported." }, "configMapKeyRef": { "$ref": "v1.ConfigMapKeySelector", "description": "Selects a key of a ConfigMap." }, "secretKeyRef": { "$ref": "v1.SecretKeySelector", "description": "Selects a key of a secret in the pod's namespace" } } }, "v1.ConfigMapKeySelector": { "id": "v1.ConfigMapKeySelector", "description": "Selects a key from a ConfigMap.", "required": [ "key" ], "properties": { "name": { "type": "string", "description": "Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" }, "key": { "type": "string", "description": "The key to select." } } }, "v1.SecretKeySelector": { "id": "v1.SecretKeySelector", "description": "SecretKeySelector selects a key of a Secret.", "required": [ "key" ], "properties": { "name": { "type": "string", "description": "Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" }, "key": { "type": "string", "description": "The key of the secret to select from. Must be a valid secret key." } } }, "v1.ResourceRequirements": { "id": "v1.ResourceRequirements", "description": "ResourceRequirements describes the compute resource requirements.", "properties": { "limits": { "type": "object", "description": "Limits describes the maximum amount of compute resources allowed. More info: http://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications" }, "requests": { "type": "object", "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://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications" } } }, "v1.VolumeMount": { "id": "v1.VolumeMount", "description": "VolumeMount describes a mounting of a Volume within a container.", "required": [ "name", "mountPath" ], "properties": { "name": { "type": "string", "description": "This must match the Name of a Volume." }, "readOnly": { "type": "boolean", "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." }, "mountPath": { "type": "string", "description": "Path within the container at which the volume should be mounted. Must not contain ':'." } } }, "v1.Probe": { "id": "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": { "$ref": "v1.ExecAction", "description": "One and only one of the following should be specified. Exec specifies the action to take." }, "httpGet": { "$ref": "v1.HTTPGetAction", "description": "HTTPGet specifies the http request to perform." }, "tcpSocket": { "$ref": "v1.TCPSocketAction", "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported" }, "initialDelaySeconds": { "type": "integer", "format": "int32", "description": "Number of seconds after the container has started before liveness probes are initiated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes" }, "timeoutSeconds": { "type": "integer", "format": "int32", "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes" }, "periodSeconds": { "type": "integer", "format": "int32", "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." }, "successThreshold": { "type": "integer", "format": "int32", "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." }, "failureThreshold": { "type": "integer", "format": "int32", "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." } } }, "v1.ExecAction": { "id": "v1.ExecAction", "description": "ExecAction describes a \"run in container\" action.", "properties": { "command": { "type": "array", "items": { "type": "string" }, "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." } } }, "v1.HTTPGetAction": { "id": "v1.HTTPGetAction", "description": "HTTPGetAction describes an action based on HTTP Get requests.", "required": [ "port" ], "properties": { "path": { "type": "string", "description": "Path to access on the HTTP server." }, "port": { "type": "string", "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." }, "host": { "type": "string", "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead." }, "scheme": { "type": "string", "description": "Scheme to use for connecting to the host. Defaults to HTTP." }, "httpHeaders": { "type": "array", "items": { "$ref": "v1.HTTPHeader" }, "description": "Custom headers to set in the request. HTTP allows repeated headers." } } }, "v1.HTTPHeader": { "id": "v1.HTTPHeader", "description": "HTTPHeader describes a custom header to be used in HTTP probes", "required": [ "name", "value" ], "properties": { "name": { "type": "string", "description": "The header field name" }, "value": { "type": "string", "description": "The header field value" } } }, "v1.TCPSocketAction": { "id": "v1.TCPSocketAction", "description": "TCPSocketAction describes an action based on opening a socket", "required": [ "port" ], "properties": { "port": { "type": "string", "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." } } }, "v1.Lifecycle": { "id": "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": { "$ref": "v1.Handler", "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://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details" }, "preStop": { "$ref": "v1.Handler", "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://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details" } } }, "v1.Handler": { "id": "v1.Handler", "description": "Handler defines a specific action that should be taken", "properties": { "exec": { "$ref": "v1.ExecAction", "description": "One and only one of the following should be specified. Exec specifies the action to take." }, "httpGet": { "$ref": "v1.HTTPGetAction", "description": "HTTPGet specifies the http request to perform." }, "tcpSocket": { "$ref": "v1.TCPSocketAction", "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported" } } }, "v1.SecurityContext": { "id": "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": { "capabilities": { "$ref": "v1.Capabilities", "description": "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime." }, "privileged": { "type": "boolean", "description": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false." }, "seLinuxOptions": { "$ref": "v1.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." }, "runAsUser": { "type": "integer", "format": "int64", "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." }, "runAsNonRoot": { "type": "boolean", "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." }, "readOnlyRootFilesystem": { "type": "boolean", "description": "Whether this container has a read-only root filesystem. Default is false." } } }, "v1.Capabilities": { "id": "v1.Capabilities", "description": "Adds and removes POSIX capabilities from running containers.", "properties": { "add": { "type": "array", "items": { "$ref": "v1.Capability" }, "description": "Added capabilities" }, "drop": { "type": "array", "items": { "$ref": "v1.Capability" }, "description": "Removed capabilities" } } }, "v1.Capability": { "id": "v1.Capability", "properties": {} }, "v1.SELinuxOptions": { "id": "v1.SELinuxOptions", "description": "SELinuxOptions are the labels to be applied to the container", "properties": { "user": { "type": "string", "description": "User is a SELinux user label that applies to the container." }, "role": { "type": "string", "description": "Role is a SELinux role label that applies to the container." }, "type": { "type": "string", "description": "Type is a SELinux type label that applies to the container." }, "level": { "type": "string", "description": "Level is SELinux level label that applies to the container." } } }, "v1.PodSecurityContext": { "id": "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": { "seLinuxOptions": { "$ref": "v1.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." }, "runAsUser": { "type": "integer", "format": "int64", "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." }, "runAsNonRoot": { "type": "boolean", "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." }, "supplementalGroups": { "type": "array", "items": { "$ref": "integer" }, "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." }, "fsGroup": { "type": "integer", "format": "int64", "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 " } } }, "integer": { "id": "integer", "properties": {} }, "v1.JobStatus": { "id": "v1.JobStatus", "description": "JobStatus represents the current state of a Job.", "properties": { "conditions": { "type": "array", "items": { "$ref": "v1.JobCondition" }, "description": "Conditions represent the latest available observations of an object's current state. More info: http://releases.k8s.io/release-1.2/docs/user-guide/jobs.md" }, "startTime": { "type": "string", "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." }, "completionTime": { "type": "string", "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." }, "active": { "type": "integer", "format": "int32", "description": "Active is the number of actively running pods." }, "succeeded": { "type": "integer", "format": "int32", "description": "Succeeded is the number of pods which reached Phase Succeeded." }, "failed": { "type": "integer", "format": "int32", "description": "Failed is the number of pods which reached Phase Failed." } } }, "v1.JobCondition": { "id": "v1.JobCondition", "description": "JobCondition describes current state of a job.", "required": [ "type", "status" ], "properties": { "type": { "type": "string", "description": "Type of job condition, Complete or Failed." }, "status": { "type": "string", "description": "Status of the condition, one of True, False, Unknown." }, "lastProbeTime": { "type": "string", "description": "Last time the condition was checked." }, "lastTransitionTime": { "type": "string", "description": "Last time the condition transit from one status to another." }, "reason": { "type": "string", "description": "(brief) reason for the condition's last transition." }, "message": { "type": "string", "description": "Human readable message indicating details about last transition." } } }, "unversioned.Status": { "id": "unversioned.Status", "description": "Status is a return value for calls that don't return other objects.", "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "status": { "type": "string", "description": "Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" }, "message": { "type": "string", "description": "A human-readable description of the status of this operation." }, "reason": { "type": "string", "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." }, "details": { "$ref": "unversioned.StatusDetails", "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." }, "code": { "type": "integer", "format": "int32", "description": "Suggested HTTP return code for this status, 0 if not set." } } }, "unversioned.StatusDetails": { "id": "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": { "name": { "type": "string", "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described)." }, "group": { "type": "string", "description": "The group attribute of the resource associated with the status StatusReason." }, "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "causes": { "type": "array", "items": { "$ref": "unversioned.StatusCause" }, "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes." }, "retryAfterSeconds": { "type": "integer", "format": "int32", "description": "If specified, the time in seconds before the operation should be retried." } } }, "unversioned.StatusCause": { "id": "unversioned.StatusCause", "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", "properties": { "reason": { "type": "string", "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available." }, "message": { "type": "string", "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader." }, "field": { "type": "string", "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\"" } } }, "json.WatchEvent": { "id": "json.WatchEvent", "properties": { "type": { "type": "string", "description": "the type of watch event; may be ADDED, MODIFIED, DELETED, or ERROR" }, "object": { "type": "string", "description": "the object being watched; will match the type of the resource endpoint or be a Status object if the type is ERROR" } } }, "unversioned.Patch": { "id": "unversioned.Patch", "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", "properties": {} }, "v1.DeleteOptions": { "id": "v1.DeleteOptions", "description": "DeleteOptions may be provided when deleting an API object", "required": [ "gracePeriodSeconds" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "gracePeriodSeconds": { "type": "integer", "format": "int64", "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." } } } } }python-k8sclient-0.4.0/k8sclient/templates/v1.json0000664000567000056710000213663413046233226023242 0ustar jenkinsjenkins00000000000000{ "swaggerVersion": "1.2", "apiVersion": "v1", "basePath": "https://10.10.10.10:443", "resourcePath": "/api/v1", "apis": [ { "path": "/api/v1/namespaces/{namespace}/bindings", "description": "API at /api/v1", "operations": [ { "type": "v1.Binding", "method": "POST", "summary": "create a Binding", "nickname": "createNamespacedBinding", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Binding", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Binding" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/componentstatuses", "description": "API at /api/v1", "operations": [ { "type": "v1.ComponentStatusList", "method": "GET", "summary": "list objects of kind ComponentStatus", "nickname": "listNamespacedComponentStatus", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ComponentStatusList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/componentstatuses/{name}", "description": "API at /api/v1", "operations": [ { "type": "v1.ComponentStatus", "method": "GET", "summary": "read the specified ComponentStatus", "nickname": "readNamespacedComponentStatus", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ComponentStatus", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ComponentStatus" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/configmaps", "description": "API at /api/v1", "operations": [ { "type": "v1.ConfigMapList", "method": "GET", "summary": "list or watch objects of kind ConfigMap", "nickname": "listNamespacedConfigMap", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ConfigMapList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.ConfigMap", "method": "POST", "summary": "create a ConfigMap", "nickname": "createNamespacedConfigMap", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.ConfigMap", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ConfigMap" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete collection of ConfigMap", "nickname": "deletecollectionNamespacedConfigMap", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/configmaps", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of ConfigMap", "nickname": "watchNamespacedConfigMapList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/configmaps/{name}", "description": "API at /api/v1", "operations": [ { "type": "v1.ConfigMap", "method": "GET", "summary": "read the specified ConfigMap", "nickname": "readNamespacedConfigMap", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "export", "description": "Should this value be exported. Export strips fields that a user can not specify.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "exact", "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ConfigMap", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ConfigMap" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.ConfigMap", "method": "PUT", "summary": "replace the specified ConfigMap", "nickname": "replaceNamespacedConfigMap", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.ConfigMap", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ConfigMap", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ConfigMap" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.ConfigMap", "method": "PATCH", "summary": "partially update the specified ConfigMap", "nickname": "patchNamespacedConfigMap", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ConfigMap", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ConfigMap" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete a ConfigMap", "nickname": "deleteNamespacedConfigMap", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.DeleteOptions", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ConfigMap", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/configmaps/{name}", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch changes to an object of kind ConfigMap", "nickname": "watchNamespacedConfigMap", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ConfigMap", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/configmaps", "description": "API at /api/v1", "operations": [ { "type": "v1.ConfigMapList", "method": "GET", "summary": "list or watch objects of kind ConfigMap", "nickname": "listConfigMap", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ConfigMapList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/configmaps", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of ConfigMap", "nickname": "watchConfigMapList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/endpoints", "description": "API at /api/v1", "operations": [ { "type": "v1.EndpointsList", "method": "GET", "summary": "list or watch objects of kind Endpoints", "nickname": "listNamespacedEndpoints", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.EndpointsList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Endpoints", "method": "POST", "summary": "create a Endpoints", "nickname": "createNamespacedEndpoints", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Endpoints", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Endpoints" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete collection of Endpoints", "nickname": "deletecollectionNamespacedEndpoints", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/endpoints", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of Endpoints", "nickname": "watchNamespacedEndpointsList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/endpoints/{name}", "description": "API at /api/v1", "operations": [ { "type": "v1.Endpoints", "method": "GET", "summary": "read the specified Endpoints", "nickname": "readNamespacedEndpoints", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "export", "description": "Should this value be exported. Export strips fields that a user can not specify.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "exact", "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Endpoints", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Endpoints" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Endpoints", "method": "PUT", "summary": "replace the specified Endpoints", "nickname": "replaceNamespacedEndpoints", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Endpoints", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Endpoints", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Endpoints" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Endpoints", "method": "PATCH", "summary": "partially update the specified Endpoints", "nickname": "patchNamespacedEndpoints", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Endpoints", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Endpoints" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete a Endpoints", "nickname": "deleteNamespacedEndpoints", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.DeleteOptions", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Endpoints", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/endpoints/{name}", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch changes to an object of kind Endpoints", "nickname": "watchNamespacedEndpoints", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Endpoints", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/endpoints", "description": "API at /api/v1", "operations": [ { "type": "v1.EndpointsList", "method": "GET", "summary": "list or watch objects of kind Endpoints", "nickname": "listEndpoints", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.EndpointsList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/endpoints", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of Endpoints", "nickname": "watchEndpointsList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/events", "description": "API at /api/v1", "operations": [ { "type": "v1.EventList", "method": "GET", "summary": "list or watch objects of kind Event", "nickname": "listNamespacedEvent", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.EventList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Event", "method": "POST", "summary": "create a Event", "nickname": "createNamespacedEvent", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Event", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Event" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete collection of Event", "nickname": "deletecollectionNamespacedEvent", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/events", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of Event", "nickname": "watchNamespacedEventList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/events/{name}", "description": "API at /api/v1", "operations": [ { "type": "v1.Event", "method": "GET", "summary": "read the specified Event", "nickname": "readNamespacedEvent", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "export", "description": "Should this value be exported. Export strips fields that a user can not specify.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "exact", "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Event", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Event" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Event", "method": "PUT", "summary": "replace the specified Event", "nickname": "replaceNamespacedEvent", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Event", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Event", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Event" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Event", "method": "PATCH", "summary": "partially update the specified Event", "nickname": "patchNamespacedEvent", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Event", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Event" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete a Event", "nickname": "deleteNamespacedEvent", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.DeleteOptions", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Event", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/events/{name}", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch changes to an object of kind Event", "nickname": "watchNamespacedEvent", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Event", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/events", "description": "API at /api/v1", "operations": [ { "type": "v1.EventList", "method": "GET", "summary": "list or watch objects of kind Event", "nickname": "listEvent", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.EventList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/events", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of Event", "nickname": "watchEventList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/limitranges", "description": "API at /api/v1", "operations": [ { "type": "v1.LimitRangeList", "method": "GET", "summary": "list or watch objects of kind LimitRange", "nickname": "listNamespacedLimitRange", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.LimitRangeList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.LimitRange", "method": "POST", "summary": "create a LimitRange", "nickname": "createNamespacedLimitRange", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.LimitRange", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.LimitRange" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete collection of LimitRange", "nickname": "deletecollectionNamespacedLimitRange", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/limitranges", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of LimitRange", "nickname": "watchNamespacedLimitRangeList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/limitranges/{name}", "description": "API at /api/v1", "operations": [ { "type": "v1.LimitRange", "method": "GET", "summary": "read the specified LimitRange", "nickname": "readNamespacedLimitRange", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "export", "description": "Should this value be exported. Export strips fields that a user can not specify.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "exact", "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the LimitRange", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.LimitRange" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.LimitRange", "method": "PUT", "summary": "replace the specified LimitRange", "nickname": "replaceNamespacedLimitRange", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.LimitRange", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the LimitRange", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.LimitRange" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.LimitRange", "method": "PATCH", "summary": "partially update the specified LimitRange", "nickname": "patchNamespacedLimitRange", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the LimitRange", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.LimitRange" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete a LimitRange", "nickname": "deleteNamespacedLimitRange", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.DeleteOptions", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the LimitRange", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/limitranges/{name}", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch changes to an object of kind LimitRange", "nickname": "watchNamespacedLimitRange", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the LimitRange", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/limitranges", "description": "API at /api/v1", "operations": [ { "type": "v1.LimitRangeList", "method": "GET", "summary": "list or watch objects of kind LimitRange", "nickname": "listLimitRange", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.LimitRangeList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/limitranges", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of LimitRange", "nickname": "watchLimitRangeList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces", "description": "API at /api/v1", "operations": [ { "type": "v1.NamespaceList", "method": "GET", "summary": "list or watch objects of kind Namespace", "nickname": "listNamespacedNamespace", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.NamespaceList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Namespace", "method": "POST", "summary": "create a Namespace", "nickname": "createNamespacedNamespace", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Namespace", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Namespace" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete collection of Namespace", "nickname": "deletecollectionNamespacedNamespace", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of Namespace", "nickname": "watchNamespacedNamespaceList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{name}", "description": "API at /api/v1", "operations": [ { "type": "v1.Namespace", "method": "GET", "summary": "read the specified Namespace", "nickname": "readNamespacedNamespace", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "export", "description": "Should this value be exported. Export strips fields that a user can not specify.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "exact", "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Namespace", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Namespace" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Namespace", "method": "PUT", "summary": "replace the specified Namespace", "nickname": "replaceNamespacedNamespace", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Namespace", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Namespace", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Namespace" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Namespace", "method": "PATCH", "summary": "partially update the specified Namespace", "nickname": "patchNamespacedNamespace", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Namespace", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Namespace" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete a Namespace", "nickname": "deleteNamespacedNamespace", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.DeleteOptions", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Namespace", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{name}", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch changes to an object of kind Namespace", "nickname": "watchNamespacedNamespace", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Namespace", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{name}/finalize", "description": "API at /api/v1", "operations": [ { "type": "v1.Namespace", "method": "PUT", "summary": "replace finalize of the specified Namespace", "nickname": "replaceNamespacedNamespaceFinalize", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Namespace", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Namespace", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Namespace" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{name}/status", "description": "API at /api/v1", "operations": [ { "type": "v1.Namespace", "method": "PUT", "summary": "replace status of the specified Namespace", "nickname": "replaceNamespacedNamespaceStatus", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Namespace", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Namespace", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Namespace" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/nodes", "description": "API at /api/v1", "operations": [ { "type": "v1.NodeList", "method": "GET", "summary": "list or watch objects of kind Node", "nickname": "listNamespacedNode", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.NodeList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Node", "method": "POST", "summary": "create a Node", "nickname": "createNamespacedNode", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Node", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Node" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete collection of Node", "nickname": "deletecollectionNamespacedNode", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/nodes", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of Node", "nickname": "watchNamespacedNodeList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/nodes/{name}", "description": "API at /api/v1", "operations": [ { "type": "v1.Node", "method": "GET", "summary": "read the specified Node", "nickname": "readNamespacedNode", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "export", "description": "Should this value be exported. Export strips fields that a user can not specify.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "exact", "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Node" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Node", "method": "PUT", "summary": "replace the specified Node", "nickname": "replaceNamespacedNode", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Node", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Node" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Node", "method": "PATCH", "summary": "partially update the specified Node", "nickname": "patchNamespacedNode", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Node" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete a Node", "nickname": "deleteNamespacedNode", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.DeleteOptions", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/nodes/{name}", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch changes to an object of kind Node", "nickname": "watchNamespacedNode", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/proxy/nodes/{name}/{path}", "description": "API at /api/v1", "operations": [ { "type": "string", "method": "GET", "summary": "proxy GET requests to Node", "nickname": "proxyGETNamespacedNode", "parameters": [ { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "PUT", "summary": "proxy PUT requests to Node", "nickname": "proxyPUTNamespacedNode", "parameters": [ { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "POST", "summary": "proxy POST requests to Node", "nickname": "proxyPOSTNamespacedNode", "parameters": [ { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "DELETE", "summary": "proxy DELETE requests to Node", "nickname": "proxyDELETENamespacedNode", "parameters": [ { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "HEAD", "summary": "proxy HEAD requests to Node", "nickname": "proxyHEADNamespacedNode", "parameters": [ { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "OPTIONS", "summary": "proxy OPTIONS requests to Node", "nickname": "proxyOPTIONSNamespacedNode", "parameters": [ { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/proxy/nodes/{name}", "description": "API at /api/v1", "operations": [ { "type": "string", "method": "GET", "summary": "proxy GET requests to Node", "nickname": "proxyGETNamespacedNode", "parameters": [ { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "PUT", "summary": "proxy PUT requests to Node", "nickname": "proxyPUTNamespacedNode", "parameters": [ { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "POST", "summary": "proxy POST requests to Node", "nickname": "proxyPOSTNamespacedNode", "parameters": [ { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "DELETE", "summary": "proxy DELETE requests to Node", "nickname": "proxyDELETENamespacedNode", "parameters": [ { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "HEAD", "summary": "proxy HEAD requests to Node", "nickname": "proxyHEADNamespacedNode", "parameters": [ { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "OPTIONS", "summary": "proxy OPTIONS requests to Node", "nickname": "proxyOPTIONSNamespacedNode", "parameters": [ { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/nodes/{name}/proxy", "description": "API at /api/v1", "operations": [ { "type": "string", "method": "GET", "summary": "connect GET requests to proxy of Node", "nickname": "connectGetNamespacedNodeProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to node.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "POST", "summary": "connect POST requests to proxy of Node", "nickname": "connectPostNamespacedNodeProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to node.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "PUT", "summary": "connect PUT requests to proxy of Node", "nickname": "connectPutNamespacedNodeProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to node.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "DELETE", "summary": "connect DELETE requests to proxy of Node", "nickname": "connectDeleteNamespacedNodeProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to node.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "HEAD", "summary": "connect HEAD requests to proxy of Node", "nickname": "connectHeadNamespacedNodeProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to node.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "OPTIONS", "summary": "connect OPTIONS requests to proxy of Node", "nickname": "connectOptionsNamespacedNodeProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to node.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/nodes/{name}/proxy/{path}", "description": "API at /api/v1", "operations": [ { "type": "string", "method": "GET", "summary": "connect GET requests to proxy of Node", "nickname": "connectGetNamespacedNodeProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to node.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "POST", "summary": "connect POST requests to proxy of Node", "nickname": "connectPostNamespacedNodeProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to node.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "PUT", "summary": "connect PUT requests to proxy of Node", "nickname": "connectPutNamespacedNodeProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to node.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "DELETE", "summary": "connect DELETE requests to proxy of Node", "nickname": "connectDeleteNamespacedNodeProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to node.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "HEAD", "summary": "connect HEAD requests to proxy of Node", "nickname": "connectHeadNamespacedNodeProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to node.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "OPTIONS", "summary": "connect OPTIONS requests to proxy of Node", "nickname": "connectOptionsNamespacedNodeProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to node.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/nodes/{name}/status", "description": "API at /api/v1", "operations": [ { "type": "v1.Node", "method": "PUT", "summary": "replace status of the specified Node", "nickname": "replaceNamespacedNodeStatus", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Node", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Node", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Node" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/persistentvolumeclaims", "description": "API at /api/v1", "operations": [ { "type": "v1.PersistentVolumeClaimList", "method": "GET", "summary": "list or watch objects of kind PersistentVolumeClaim", "nickname": "listNamespacedPersistentVolumeClaim", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.PersistentVolumeClaimList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.PersistentVolumeClaim", "method": "POST", "summary": "create a PersistentVolumeClaim", "nickname": "createNamespacedPersistentVolumeClaim", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.PersistentVolumeClaim", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.PersistentVolumeClaim" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete collection of PersistentVolumeClaim", "nickname": "deletecollectionNamespacedPersistentVolumeClaim", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of PersistentVolumeClaim", "nickname": "watchNamespacedPersistentVolumeClaimList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}", "description": "API at /api/v1", "operations": [ { "type": "v1.PersistentVolumeClaim", "method": "GET", "summary": "read the specified PersistentVolumeClaim", "nickname": "readNamespacedPersistentVolumeClaim", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "export", "description": "Should this value be exported. Export strips fields that a user can not specify.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "exact", "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the PersistentVolumeClaim", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.PersistentVolumeClaim" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.PersistentVolumeClaim", "method": "PUT", "summary": "replace the specified PersistentVolumeClaim", "nickname": "replaceNamespacedPersistentVolumeClaim", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.PersistentVolumeClaim", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the PersistentVolumeClaim", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.PersistentVolumeClaim" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.PersistentVolumeClaim", "method": "PATCH", "summary": "partially update the specified PersistentVolumeClaim", "nickname": "patchNamespacedPersistentVolumeClaim", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the PersistentVolumeClaim", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.PersistentVolumeClaim" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete a PersistentVolumeClaim", "nickname": "deleteNamespacedPersistentVolumeClaim", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.DeleteOptions", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the PersistentVolumeClaim", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name}", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch changes to an object of kind PersistentVolumeClaim", "nickname": "watchNamespacedPersistentVolumeClaim", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the PersistentVolumeClaim", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/persistentvolumeclaims", "description": "API at /api/v1", "operations": [ { "type": "v1.PersistentVolumeClaimList", "method": "GET", "summary": "list or watch objects of kind PersistentVolumeClaim", "nickname": "listPersistentVolumeClaim", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.PersistentVolumeClaimList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/persistentvolumeclaims", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of PersistentVolumeClaim", "nickname": "watchPersistentVolumeClaimList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status", "description": "API at /api/v1", "operations": [ { "type": "v1.PersistentVolumeClaim", "method": "PUT", "summary": "replace status of the specified PersistentVolumeClaim", "nickname": "replaceNamespacedPersistentVolumeClaimStatus", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.PersistentVolumeClaim", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the PersistentVolumeClaim", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.PersistentVolumeClaim" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/persistentvolumes", "description": "API at /api/v1", "operations": [ { "type": "v1.PersistentVolumeList", "method": "GET", "summary": "list or watch objects of kind PersistentVolume", "nickname": "listNamespacedPersistentVolume", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.PersistentVolumeList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.PersistentVolume", "method": "POST", "summary": "create a PersistentVolume", "nickname": "createNamespacedPersistentVolume", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.PersistentVolume", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.PersistentVolume" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete collection of PersistentVolume", "nickname": "deletecollectionNamespacedPersistentVolume", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/persistentvolumes", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of PersistentVolume", "nickname": "watchNamespacedPersistentVolumeList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/persistentvolumes/{name}", "description": "API at /api/v1", "operations": [ { "type": "v1.PersistentVolume", "method": "GET", "summary": "read the specified PersistentVolume", "nickname": "readNamespacedPersistentVolume", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "export", "description": "Should this value be exported. Export strips fields that a user can not specify.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "exact", "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the PersistentVolume", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.PersistentVolume" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.PersistentVolume", "method": "PUT", "summary": "replace the specified PersistentVolume", "nickname": "replaceNamespacedPersistentVolume", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.PersistentVolume", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the PersistentVolume", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.PersistentVolume" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.PersistentVolume", "method": "PATCH", "summary": "partially update the specified PersistentVolume", "nickname": "patchNamespacedPersistentVolume", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the PersistentVolume", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.PersistentVolume" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete a PersistentVolume", "nickname": "deleteNamespacedPersistentVolume", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.DeleteOptions", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the PersistentVolume", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/persistentvolumes/{name}", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch changes to an object of kind PersistentVolume", "nickname": "watchNamespacedPersistentVolume", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the PersistentVolume", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/persistentvolumes/{name}/status", "description": "API at /api/v1", "operations": [ { "type": "v1.PersistentVolume", "method": "PUT", "summary": "replace status of the specified PersistentVolume", "nickname": "replaceNamespacedPersistentVolumeStatus", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.PersistentVolume", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the PersistentVolume", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.PersistentVolume" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/pods", "description": "API at /api/v1", "operations": [ { "type": "v1.PodList", "method": "GET", "summary": "list or watch objects of kind Pod", "nickname": "listNamespacedPod", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.PodList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Pod", "method": "POST", "summary": "create a Pod", "nickname": "createNamespacedPod", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Pod", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Pod" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete collection of Pod", "nickname": "deletecollectionNamespacedPod", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/pods", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of Pod", "nickname": "watchNamespacedPodList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/pods/{name}", "description": "API at /api/v1", "operations": [ { "type": "v1.Pod", "method": "GET", "summary": "read the specified Pod", "nickname": "readNamespacedPod", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "export", "description": "Should this value be exported. Export strips fields that a user can not specify.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "exact", "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Pod" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Pod", "method": "PUT", "summary": "replace the specified Pod", "nickname": "replaceNamespacedPod", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Pod", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Pod" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Pod", "method": "PATCH", "summary": "partially update the specified Pod", "nickname": "patchNamespacedPod", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Pod" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete a Pod", "nickname": "deleteNamespacedPod", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.DeleteOptions", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/pods/{name}", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch changes to an object of kind Pod", "nickname": "watchNamespacedPod", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}", "description": "API at /api/v1", "operations": [ { "type": "string", "method": "GET", "summary": "proxy GET requests to Pod", "nickname": "proxyGETNamespacedPod", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "PUT", "summary": "proxy PUT requests to Pod", "nickname": "proxyPUTNamespacedPod", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "POST", "summary": "proxy POST requests to Pod", "nickname": "proxyPOSTNamespacedPod", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "DELETE", "summary": "proxy DELETE requests to Pod", "nickname": "proxyDELETENamespacedPod", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "HEAD", "summary": "proxy HEAD requests to Pod", "nickname": "proxyHEADNamespacedPod", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "OPTIONS", "summary": "proxy OPTIONS requests to Pod", "nickname": "proxyOPTIONSNamespacedPod", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/proxy/namespaces/{namespace}/pods/{name}", "description": "API at /api/v1", "operations": [ { "type": "string", "method": "GET", "summary": "proxy GET requests to Pod", "nickname": "proxyGETNamespacedPod", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "PUT", "summary": "proxy PUT requests to Pod", "nickname": "proxyPUTNamespacedPod", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "POST", "summary": "proxy POST requests to Pod", "nickname": "proxyPOSTNamespacedPod", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "DELETE", "summary": "proxy DELETE requests to Pod", "nickname": "proxyDELETENamespacedPod", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "HEAD", "summary": "proxy HEAD requests to Pod", "nickname": "proxyHEADNamespacedPod", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "OPTIONS", "summary": "proxy OPTIONS requests to Pod", "nickname": "proxyOPTIONSNamespacedPod", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/pods", "description": "API at /api/v1", "operations": [ { "type": "v1.PodList", "method": "GET", "summary": "list or watch objects of kind Pod", "nickname": "listPod", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.PodList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/pods", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of Pod", "nickname": "watchPodList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/pods/{name}/attach", "description": "API at /api/v1", "operations": [ { "type": "string", "method": "GET", "summary": "connect GET requests to attach of Pod", "nickname": "connectGetNamespacedPodAttach", "parameters": [ { "type": "boolean", "paramType": "query", "name": "stdin", "description": "Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "stdout", "description": "Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "stderr", "description": "Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "tty", "description": "TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "container", "description": "The container in which to execute the command. Defaults to only container if there is only one container in the pod.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "POST", "summary": "connect POST requests to attach of Pod", "nickname": "connectPostNamespacedPodAttach", "parameters": [ { "type": "boolean", "paramType": "query", "name": "stdin", "description": "Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "stdout", "description": "Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "stderr", "description": "Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "tty", "description": "TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "container", "description": "The container in which to execute the command. Defaults to only container if there is only one container in the pod.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/pods/{name}/binding", "description": "API at /api/v1", "operations": [ { "type": "v1.Binding", "method": "POST", "summary": "create binding of a Binding", "nickname": "createNamespacedBindingBinding", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Binding", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Binding", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Binding" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/pods/{name}/exec", "description": "API at /api/v1", "operations": [ { "type": "string", "method": "GET", "summary": "connect GET requests to exec of Pod", "nickname": "connectGetNamespacedPodExec", "parameters": [ { "type": "boolean", "paramType": "query", "name": "stdin", "description": "Redirect the standard input stream of the pod for this call. Defaults to false.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "stdout", "description": "Redirect the standard output stream of the pod for this call. Defaults to true.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "stderr", "description": "Redirect the standard error stream of the pod for this call. Defaults to true.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "tty", "description": "TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "container", "description": "Container in which to execute the command. Defaults to only container if there is only one container in the pod.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "command", "description": "Command is the remote command to execute. argv array. Not executed within a shell.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "POST", "summary": "connect POST requests to exec of Pod", "nickname": "connectPostNamespacedPodExec", "parameters": [ { "type": "boolean", "paramType": "query", "name": "stdin", "description": "Redirect the standard input stream of the pod for this call. Defaults to false.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "stdout", "description": "Redirect the standard output stream of the pod for this call. Defaults to true.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "stderr", "description": "Redirect the standard error stream of the pod for this call. Defaults to true.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "tty", "description": "TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "container", "description": "Container in which to execute the command. Defaults to only container if there is only one container in the pod.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "command", "description": "Command is the remote command to execute. argv array. Not executed within a shell.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/pods/{name}/log", "description": "API at /api/v1", "operations": [ { "type": "v1.Pod", "method": "GET", "summary": "read log of the specified Pod", "nickname": "readNamespacedPodLog", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "container", "description": "The container for which to stream logs. Defaults to only container if there is one container in the pod.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "follow", "description": "Follow the log stream of the pod. Defaults to false.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "previous", "description": "Return previous terminated container logs. Defaults to false.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "sinceSeconds", "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.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "sinceTime", "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.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "timestamps", "description": "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "tailLines", "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", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "limitBytes", "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.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Pod" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/pods/{name}/portforward", "description": "API at /api/v1", "operations": [ { "type": "string", "method": "GET", "summary": "connect GET requests to portforward of Pod", "nickname": "connectGetNamespacedPodPortforward", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "POST", "summary": "connect POST requests to portforward of Pod", "nickname": "connectPostNamespacedPodPortforward", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/pods/{name}/proxy", "description": "API at /api/v1", "operations": [ { "type": "string", "method": "GET", "summary": "connect GET requests to proxy of Pod", "nickname": "connectGetNamespacedPodProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to pod.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "POST", "summary": "connect POST requests to proxy of Pod", "nickname": "connectPostNamespacedPodProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to pod.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "PUT", "summary": "connect PUT requests to proxy of Pod", "nickname": "connectPutNamespacedPodProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to pod.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "DELETE", "summary": "connect DELETE requests to proxy of Pod", "nickname": "connectDeleteNamespacedPodProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to pod.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "HEAD", "summary": "connect HEAD requests to proxy of Pod", "nickname": "connectHeadNamespacedPodProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to pod.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "OPTIONS", "summary": "connect OPTIONS requests to proxy of Pod", "nickname": "connectOptionsNamespacedPodProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to pod.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}", "description": "API at /api/v1", "operations": [ { "type": "string", "method": "GET", "summary": "connect GET requests to proxy of Pod", "nickname": "connectGetNamespacedPodProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to pod.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "POST", "summary": "connect POST requests to proxy of Pod", "nickname": "connectPostNamespacedPodProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to pod.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "PUT", "summary": "connect PUT requests to proxy of Pod", "nickname": "connectPutNamespacedPodProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to pod.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "DELETE", "summary": "connect DELETE requests to proxy of Pod", "nickname": "connectDeleteNamespacedPodProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to pod.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "HEAD", "summary": "connect HEAD requests to proxy of Pod", "nickname": "connectHeadNamespacedPodProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to pod.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "OPTIONS", "summary": "connect OPTIONS requests to proxy of Pod", "nickname": "connectOptionsNamespacedPodProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the URL path to use for the current proxy request to pod.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/pods/{name}/status", "description": "API at /api/v1", "operations": [ { "type": "v1.Pod", "method": "PUT", "summary": "replace status of the specified Pod", "nickname": "replaceNamespacedPodStatus", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Pod", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Pod", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Pod" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/podtemplates", "description": "API at /api/v1", "operations": [ { "type": "v1.PodTemplateList", "method": "GET", "summary": "list or watch objects of kind PodTemplate", "nickname": "listNamespacedPodTemplate", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.PodTemplateList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.PodTemplate", "method": "POST", "summary": "create a PodTemplate", "nickname": "createNamespacedPodTemplate", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.PodTemplate", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.PodTemplate" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete collection of PodTemplate", "nickname": "deletecollectionNamespacedPodTemplate", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/podtemplates", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of PodTemplate", "nickname": "watchNamespacedPodTemplateList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/podtemplates/{name}", "description": "API at /api/v1", "operations": [ { "type": "v1.PodTemplate", "method": "GET", "summary": "read the specified PodTemplate", "nickname": "readNamespacedPodTemplate", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "export", "description": "Should this value be exported. Export strips fields that a user can not specify.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "exact", "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the PodTemplate", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.PodTemplate" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.PodTemplate", "method": "PUT", "summary": "replace the specified PodTemplate", "nickname": "replaceNamespacedPodTemplate", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.PodTemplate", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the PodTemplate", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.PodTemplate" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.PodTemplate", "method": "PATCH", "summary": "partially update the specified PodTemplate", "nickname": "patchNamespacedPodTemplate", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the PodTemplate", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.PodTemplate" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete a PodTemplate", "nickname": "deleteNamespacedPodTemplate", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.DeleteOptions", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the PodTemplate", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/podtemplates/{name}", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch changes to an object of kind PodTemplate", "nickname": "watchNamespacedPodTemplate", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the PodTemplate", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/podtemplates", "description": "API at /api/v1", "operations": [ { "type": "v1.PodTemplateList", "method": "GET", "summary": "list or watch objects of kind PodTemplate", "nickname": "listPodTemplate", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.PodTemplateList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/podtemplates", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of PodTemplate", "nickname": "watchPodTemplateList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/replicationcontrollers", "description": "API at /api/v1", "operations": [ { "type": "v1.ReplicationControllerList", "method": "GET", "summary": "list or watch objects of kind ReplicationController", "nickname": "listNamespacedReplicationController", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ReplicationControllerList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.ReplicationController", "method": "POST", "summary": "create a ReplicationController", "nickname": "createNamespacedReplicationController", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.ReplicationController", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ReplicationController" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete collection of ReplicationController", "nickname": "deletecollectionNamespacedReplicationController", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/replicationcontrollers", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of ReplicationController", "nickname": "watchNamespacedReplicationControllerList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}", "description": "API at /api/v1", "operations": [ { "type": "v1.ReplicationController", "method": "GET", "summary": "read the specified ReplicationController", "nickname": "readNamespacedReplicationController", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "export", "description": "Should this value be exported. Export strips fields that a user can not specify.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "exact", "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ReplicationController", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ReplicationController" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.ReplicationController", "method": "PUT", "summary": "replace the specified ReplicationController", "nickname": "replaceNamespacedReplicationController", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.ReplicationController", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ReplicationController", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ReplicationController" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.ReplicationController", "method": "PATCH", "summary": "partially update the specified ReplicationController", "nickname": "patchNamespacedReplicationController", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ReplicationController", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ReplicationController" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete a ReplicationController", "nickname": "deleteNamespacedReplicationController", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.DeleteOptions", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ReplicationController", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name}", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch changes to an object of kind ReplicationController", "nickname": "watchNamespacedReplicationController", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ReplicationController", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/replicationcontrollers", "description": "API at /api/v1", "operations": [ { "type": "v1.ReplicationControllerList", "method": "GET", "summary": "list or watch objects of kind ReplicationController", "nickname": "listReplicationController", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ReplicationControllerList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/replicationcontrollers", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of ReplicationController", "nickname": "watchReplicationControllerList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale", "description": "API at /api/v1", "operations": [ { "type": "v1.Scale", "method": "GET", "summary": "read scale of the specified Scale", "nickname": "readNamespacedScaleScale", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Scale", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Scale" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Scale", "method": "PUT", "summary": "replace scale of the specified Scale", "nickname": "replaceNamespacedScaleScale", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Scale", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Scale", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Scale" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Scale", "method": "PATCH", "summary": "partially update scale of the specified Scale", "nickname": "patchNamespacedScaleScale", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Scale", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Scale" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status", "description": "API at /api/v1", "operations": [ { "type": "v1.ReplicationController", "method": "PUT", "summary": "replace status of the specified ReplicationController", "nickname": "replaceNamespacedReplicationControllerStatus", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.ReplicationController", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ReplicationController", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ReplicationController" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/resourcequotas", "description": "API at /api/v1", "operations": [ { "type": "v1.ResourceQuotaList", "method": "GET", "summary": "list or watch objects of kind ResourceQuota", "nickname": "listNamespacedResourceQuota", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ResourceQuotaList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.ResourceQuota", "method": "POST", "summary": "create a ResourceQuota", "nickname": "createNamespacedResourceQuota", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.ResourceQuota", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ResourceQuota" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete collection of ResourceQuota", "nickname": "deletecollectionNamespacedResourceQuota", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/resourcequotas", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of ResourceQuota", "nickname": "watchNamespacedResourceQuotaList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/resourcequotas/{name}", "description": "API at /api/v1", "operations": [ { "type": "v1.ResourceQuota", "method": "GET", "summary": "read the specified ResourceQuota", "nickname": "readNamespacedResourceQuota", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "export", "description": "Should this value be exported. Export strips fields that a user can not specify.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "exact", "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ResourceQuota", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ResourceQuota" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.ResourceQuota", "method": "PUT", "summary": "replace the specified ResourceQuota", "nickname": "replaceNamespacedResourceQuota", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.ResourceQuota", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ResourceQuota", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ResourceQuota" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.ResourceQuota", "method": "PATCH", "summary": "partially update the specified ResourceQuota", "nickname": "patchNamespacedResourceQuota", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ResourceQuota", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ResourceQuota" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete a ResourceQuota", "nickname": "deleteNamespacedResourceQuota", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.DeleteOptions", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ResourceQuota", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/resourcequotas/{name}", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch changes to an object of kind ResourceQuota", "nickname": "watchNamespacedResourceQuota", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ResourceQuota", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/resourcequotas", "description": "API at /api/v1", "operations": [ { "type": "v1.ResourceQuotaList", "method": "GET", "summary": "list or watch objects of kind ResourceQuota", "nickname": "listResourceQuota", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ResourceQuotaList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/resourcequotas", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of ResourceQuota", "nickname": "watchResourceQuotaList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/resourcequotas/{name}/status", "description": "API at /api/v1", "operations": [ { "type": "v1.ResourceQuota", "method": "PUT", "summary": "replace status of the specified ResourceQuota", "nickname": "replaceNamespacedResourceQuotaStatus", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.ResourceQuota", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ResourceQuota", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ResourceQuota" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/secrets", "description": "API at /api/v1", "operations": [ { "type": "v1.SecretList", "method": "GET", "summary": "list or watch objects of kind Secret", "nickname": "listNamespacedSecret", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.SecretList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Secret", "method": "POST", "summary": "create a Secret", "nickname": "createNamespacedSecret", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Secret", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Secret" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete collection of Secret", "nickname": "deletecollectionNamespacedSecret", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/secrets", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of Secret", "nickname": "watchNamespacedSecretList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/secrets/{name}", "description": "API at /api/v1", "operations": [ { "type": "v1.Secret", "method": "GET", "summary": "read the specified Secret", "nickname": "readNamespacedSecret", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "export", "description": "Should this value be exported. Export strips fields that a user can not specify.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "exact", "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Secret", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Secret" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Secret", "method": "PUT", "summary": "replace the specified Secret", "nickname": "replaceNamespacedSecret", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Secret", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Secret", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Secret" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Secret", "method": "PATCH", "summary": "partially update the specified Secret", "nickname": "patchNamespacedSecret", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Secret", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Secret" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete a Secret", "nickname": "deleteNamespacedSecret", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.DeleteOptions", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Secret", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/secrets/{name}", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch changes to an object of kind Secret", "nickname": "watchNamespacedSecret", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Secret", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/secrets", "description": "API at /api/v1", "operations": [ { "type": "v1.SecretList", "method": "GET", "summary": "list or watch objects of kind Secret", "nickname": "listSecret", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.SecretList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/secrets", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of Secret", "nickname": "watchSecretList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/serviceaccounts", "description": "API at /api/v1", "operations": [ { "type": "v1.ServiceAccountList", "method": "GET", "summary": "list or watch objects of kind ServiceAccount", "nickname": "listNamespacedServiceAccount", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ServiceAccountList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.ServiceAccount", "method": "POST", "summary": "create a ServiceAccount", "nickname": "createNamespacedServiceAccount", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.ServiceAccount", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ServiceAccount" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete collection of ServiceAccount", "nickname": "deletecollectionNamespacedServiceAccount", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/serviceaccounts", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of ServiceAccount", "nickname": "watchNamespacedServiceAccountList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/serviceaccounts/{name}", "description": "API at /api/v1", "operations": [ { "type": "v1.ServiceAccount", "method": "GET", "summary": "read the specified ServiceAccount", "nickname": "readNamespacedServiceAccount", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "export", "description": "Should this value be exported. Export strips fields that a user can not specify.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "exact", "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ServiceAccount", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ServiceAccount" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.ServiceAccount", "method": "PUT", "summary": "replace the specified ServiceAccount", "nickname": "replaceNamespacedServiceAccount", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.ServiceAccount", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ServiceAccount", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ServiceAccount" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.ServiceAccount", "method": "PATCH", "summary": "partially update the specified ServiceAccount", "nickname": "patchNamespacedServiceAccount", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ServiceAccount", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ServiceAccount" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete a ServiceAccount", "nickname": "deleteNamespacedServiceAccount", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.DeleteOptions", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ServiceAccount", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/serviceaccounts/{name}", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch changes to an object of kind ServiceAccount", "nickname": "watchNamespacedServiceAccount", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ServiceAccount", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/serviceaccounts", "description": "API at /api/v1", "operations": [ { "type": "v1.ServiceAccountList", "method": "GET", "summary": "list or watch objects of kind ServiceAccount", "nickname": "listServiceAccount", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ServiceAccountList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/serviceaccounts", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of ServiceAccount", "nickname": "watchServiceAccountList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/services", "description": "API at /api/v1", "operations": [ { "type": "v1.ServiceList", "method": "GET", "summary": "list or watch objects of kind Service", "nickname": "listNamespacedService", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ServiceList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Service", "method": "POST", "summary": "create a Service", "nickname": "createNamespacedService", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Service", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Service" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/services", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of Service", "nickname": "watchNamespacedServiceList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/services/{name}", "description": "API at /api/v1", "operations": [ { "type": "v1.Service", "method": "GET", "summary": "read the specified Service", "nickname": "readNamespacedService", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "export", "description": "Should this value be exported. Export strips fields that a user can not specify.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "exact", "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Service" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Service", "method": "PUT", "summary": "replace the specified Service", "nickname": "replaceNamespacedService", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Service", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Service" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1.Service", "method": "PATCH", "summary": "partially update the specified Service", "nickname": "patchNamespacedService", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Service" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete a Service", "nickname": "deleteNamespacedService", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/namespaces/{namespace}/services/{name}", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch changes to an object of kind Service", "nickname": "watchNamespacedService", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}", "description": "API at /api/v1", "operations": [ { "type": "string", "method": "GET", "summary": "proxy GET requests to Service", "nickname": "proxyGETNamespacedService", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "PUT", "summary": "proxy PUT requests to Service", "nickname": "proxyPUTNamespacedService", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "POST", "summary": "proxy POST requests to Service", "nickname": "proxyPOSTNamespacedService", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "DELETE", "summary": "proxy DELETE requests to Service", "nickname": "proxyDELETENamespacedService", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "HEAD", "summary": "proxy HEAD requests to Service", "nickname": "proxyHEADNamespacedService", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "OPTIONS", "summary": "proxy OPTIONS requests to Service", "nickname": "proxyOPTIONSNamespacedService", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/proxy/namespaces/{namespace}/services/{name}", "description": "API at /api/v1", "operations": [ { "type": "string", "method": "GET", "summary": "proxy GET requests to Service", "nickname": "proxyGETNamespacedService", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "PUT", "summary": "proxy PUT requests to Service", "nickname": "proxyPUTNamespacedService", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "POST", "summary": "proxy POST requests to Service", "nickname": "proxyPOSTNamespacedService", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "DELETE", "summary": "proxy DELETE requests to Service", "nickname": "proxyDELETENamespacedService", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "HEAD", "summary": "proxy HEAD requests to Service", "nickname": "proxyHEADNamespacedService", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "OPTIONS", "summary": "proxy OPTIONS requests to Service", "nickname": "proxyOPTIONSNamespacedService", "parameters": [ { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/services", "description": "API at /api/v1", "operations": [ { "type": "v1.ServiceList", "method": "GET", "summary": "list or watch objects of kind Service", "nickname": "listService", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.ServiceList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/watch/services", "description": "API at /api/v1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of Service", "nickname": "watchServiceList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/services/{name}/proxy", "description": "API at /api/v1", "operations": [ { "type": "string", "method": "GET", "summary": "connect GET requests to proxy of Service", "nickname": "connectGetNamespacedServiceProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "POST", "summary": "connect POST requests to proxy of Service", "nickname": "connectPostNamespacedServiceProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "PUT", "summary": "connect PUT requests to proxy of Service", "nickname": "connectPutNamespacedServiceProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "DELETE", "summary": "connect DELETE requests to proxy of Service", "nickname": "connectDeleteNamespacedServiceProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "HEAD", "summary": "connect HEAD requests to proxy of Service", "nickname": "connectHeadNamespacedServiceProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "OPTIONS", "summary": "connect OPTIONS requests to proxy of Service", "nickname": "connectOptionsNamespacedServiceProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}", "description": "API at /api/v1", "operations": [ { "type": "string", "method": "GET", "summary": "connect GET requests to proxy of Service", "nickname": "connectGetNamespacedServiceProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "POST", "summary": "connect POST requests to proxy of Service", "nickname": "connectPostNamespacedServiceProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "PUT", "summary": "connect PUT requests to proxy of Service", "nickname": "connectPutNamespacedServiceProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "DELETE", "summary": "connect DELETE requests to proxy of Service", "nickname": "connectDeleteNamespacedServiceProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "HEAD", "summary": "connect HEAD requests to proxy of Service", "nickname": "connectHeadNamespacedServiceProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] }, { "type": "string", "method": "OPTIONS", "summary": "connect OPTIONS requests to proxy of Service", "nickname": "connectOptionsNamespacedServiceProxy", "parameters": [ { "type": "string", "paramType": "query", "name": "path", "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false } ], "produces": [ "*/*" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1/namespaces/{namespace}/services/{name}/status", "description": "API at /api/v1", "operations": [ { "type": "v1.Service", "method": "PUT", "summary": "replace status of the specified Service", "nickname": "replaceNamespacedServiceStatus", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.Service", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Service", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1.Service" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/api/v1", "description": "API at /api/v1", "operations": [ { "type": "void", "method": "GET", "summary": "get available resources", "nickname": "getAPIResources", "parameters": [], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json", "application/yaml" ] } ] } ], "models": { "v1.Binding": { "id": "v1.Binding", "description": "Binding ties one object to another. For example, a pod is bound to a node by a scheduler.", "required": [ "target" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "target": { "$ref": "v1.ObjectReference", "description": "The target object that you want to bind to the standard object." } } }, "v1.ObjectMeta": { "id": "v1.ObjectMeta", "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", "properties": { "name": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" }, "generateName": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#idempotency" }, "namespace": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md" }, "selfLink": { "type": "string", "description": "SelfLink is a URL representing this object. Populated by the system. Read-only." }, "uid": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#uids" }, "resourceVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency" }, "generation": { "type": "integer", "format": "int64", "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only." }, "creationTimestamp": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#metadata" }, "deletionTimestamp": { "type": "string", "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 will be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. Once the resource is deleted in the API, the Kubelet will send a hard termination signal to the container. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "deletionGracePeriodSeconds": { "type": "integer", "format": "int64", "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." }, "labels": { "type": "any", "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://releases.k8s.io/release-1.2/docs/user-guide/labels.md" }, "annotations": { "type": "any", "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://releases.k8s.io/release-1.2/docs/user-guide/annotations.md" } } }, "v1.ObjectReference": { "id": "v1.ObjectReference", "description": "ObjectReference contains enough information to let you inspect or modify the referred object.", "properties": { "kind": { "type": "string", "description": "Kind of the referent. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "namespace": { "type": "string", "description": "Namespace of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md" }, "name": { "type": "string", "description": "Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" }, "uid": { "type": "string", "description": "UID of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#uids" }, "apiVersion": { "type": "string", "description": "API version of the referent." }, "resourceVersion": { "type": "string", "description": "Specific resourceVersion to which this reference is made, if any. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency" }, "fieldPath": { "type": "string", "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." } } }, "v1.ComponentStatusList": { "id": "v1.ComponentStatusList", "description": "Status of all the conditions for the component as a list of ComponentStatus objects.", "required": [ "items" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.ComponentStatus" }, "description": "List of ComponentStatus objects." } } }, "unversioned.ListMeta": { "id": "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": { "selfLink": { "type": "string", "description": "SelfLink is a URL representing this object. Populated by the system. Read-only." }, "resourceVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency" } } }, "v1.ComponentStatus": { "id": "v1.ComponentStatus", "description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info.", "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "conditions": { "type": "array", "items": { "$ref": "v1.ComponentCondition" }, "description": "List of component conditions observed" } } }, "v1.ComponentCondition": { "id": "v1.ComponentCondition", "description": "Information about the condition of a component.", "required": [ "type", "status" ], "properties": { "type": { "type": "string", "description": "Type of condition for a component. Valid value: \"Healthy\"" }, "status": { "type": "string", "description": "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\"." }, "message": { "type": "string", "description": "Message about the condition for a component. For example, information about a health check." }, "error": { "type": "string", "description": "Condition error code for a component. For example, a health check error code." } } }, "v1.ConfigMapList": { "id": "v1.ConfigMapList", "description": "ConfigMapList is a resource containing a list of ConfigMap objects.", "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "items": { "type": "array", "items": { "$ref": "v1.ConfigMap" }, "description": "Items is the list of ConfigMaps." } } }, "v1.ConfigMap": { "id": "v1.ConfigMap", "description": "ConfigMap holds configuration data for pods to consume.", "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "data": { "type": "any", "description": "Data contains the configuration data. Each key must be a valid DNS_SUBDOMAIN with an optional leading dot." } } }, "unversioned.Status": { "id": "unversioned.Status", "description": "Status is a return value for calls that don't return other objects.", "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "status": { "type": "string", "description": "Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" }, "message": { "type": "string", "description": "A human-readable description of the status of this operation." }, "reason": { "type": "string", "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." }, "details": { "$ref": "unversioned.StatusDetails", "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." }, "code": { "type": "integer", "format": "int32", "description": "Suggested HTTP return code for this status, 0 if not set." } } }, "unversioned.StatusDetails": { "id": "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": { "name": { "type": "string", "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described)." }, "group": { "type": "string", "description": "The group attribute of the resource associated with the status StatusReason." }, "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "causes": { "type": "array", "items": { "$ref": "unversioned.StatusCause" }, "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes." }, "retryAfterSeconds": { "type": "integer", "format": "int32", "description": "If specified, the time in seconds before the operation should be retried." } } }, "unversioned.StatusCause": { "id": "unversioned.StatusCause", "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", "properties": { "reason": { "type": "string", "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available." }, "message": { "type": "string", "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader." }, "field": { "type": "string", "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\"" } } }, "json.WatchEvent": { "id": "json.WatchEvent", "properties": { "type": { "type": "string", "description": "the type of watch event; may be ADDED, MODIFIED, DELETED, or ERROR" }, "object": { "type": "string", "description": "the object being watched; will match the type of the resource endpoint or be a Status object if the type is ERROR" } } }, "unversioned.Patch": { "id": "unversioned.Patch", "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", "properties": {} }, "v1.DeleteOptions": { "id": "v1.DeleteOptions", "description": "DeleteOptions may be provided when deleting an API object", "required": [ "gracePeriodSeconds" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "gracePeriodSeconds": { "type": "integer", "format": "int64", "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." } } }, "v1.EndpointsList": { "id": "v1.EndpointsList", "description": "EndpointsList is a list of endpoints.", "required": [ "items" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.Endpoints" }, "description": "List of endpoints." } } }, "v1.Endpoints": { "id": "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": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "subsets": { "type": "array", "items": { "$ref": "v1.EndpointSubset" }, "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." } } }, "v1.EndpointSubset": { "id": "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": { "type": "array", "items": { "$ref": "v1.EndpointAddress" }, "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." }, "notReadyAddresses": { "type": "array", "items": { "$ref": "v1.EndpointAddress" }, "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." }, "ports": { "type": "array", "items": { "$ref": "v1.EndpointPort" }, "description": "Port numbers available on the related IP addresses." } } }, "v1.EndpointAddress": { "id": "v1.EndpointAddress", "description": "EndpointAddress is a tuple that describes single IP address.", "required": [ "ip" ], "properties": { "ip": { "type": "string", "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)." }, "targetRef": { "$ref": "v1.ObjectReference", "description": "Reference to object providing the endpoint." } } }, "v1.EndpointPort": { "id": "v1.EndpointPort", "description": "EndpointPort is a tuple that describes a single port.", "required": [ "port" ], "properties": { "name": { "type": "string", "description": "The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined." }, "port": { "type": "integer", "format": "int32", "description": "The port number of the endpoint." }, "protocol": { "type": "string", "description": "The IP protocol for this port. Must be UDP or TCP. Default is TCP." } } }, "v1.EventList": { "id": "v1.EventList", "description": "EventList is a list of events.", "required": [ "items" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.Event" }, "description": "List of events" } } }, "v1.Event": { "id": "v1.Event", "description": "Event is a report of an event somewhere in the cluster.", "required": [ "metadata", "involvedObject" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "involvedObject": { "$ref": "v1.ObjectReference", "description": "The object that this event is about." }, "reason": { "type": "string", "description": "This should be a short, machine understandable string that gives the reason for the transition into the object's current status." }, "message": { "type": "string", "description": "A human-readable description of the status of this operation." }, "source": { "$ref": "v1.EventSource", "description": "The component reporting this event. Should be a short machine understandable string." }, "firstTimestamp": { "type": "string", "description": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)" }, "lastTimestamp": { "type": "string", "description": "The time at which the most recent occurrence of this event was recorded." }, "count": { "type": "integer", "format": "int32", "description": "The number of times this event has occurred." }, "type": { "type": "string", "description": "Type of this event (Normal, Warning), new types could be added in the future" } } }, "v1.EventSource": { "id": "v1.EventSource", "description": "EventSource contains information for an event.", "properties": { "component": { "type": "string", "description": "Component from which the event is generated." }, "host": { "type": "string", "description": "Host name on which the event is generated." } } }, "v1.LimitRangeList": { "id": "v1.LimitRangeList", "description": "LimitRangeList is a list of LimitRange items.", "required": [ "items" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.LimitRange" }, "description": "Items is a list of LimitRange objects. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_limit_range.md" } } }, "v1.LimitRange": { "id": "v1.LimitRange", "description": "LimitRange sets resource usage limits for each kind of resource in a Namespace.", "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1.LimitRangeSpec", "description": "Spec defines the limits enforced. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1.LimitRangeSpec": { "id": "v1.LimitRangeSpec", "description": "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", "required": [ "limits" ], "properties": { "limits": { "type": "array", "items": { "$ref": "v1.LimitRangeItem" }, "description": "Limits is the list of LimitRangeItem objects that are enforced." } } }, "v1.LimitRangeItem": { "id": "v1.LimitRangeItem", "description": "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", "properties": { "type": { "type": "string", "description": "Type of resource that this limit applies to." }, "max": { "type": "any", "description": "Max usage constraints on this kind by resource name." }, "min": { "type": "any", "description": "Min usage constraints on this kind by resource name." }, "default": { "type": "any", "description": "Default resource requirement limit value by resource name if resource limit is omitted." }, "defaultRequest": { "type": "any", "description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted." }, "maxLimitRequestRatio": { "type": "any", "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." } } }, "v1.NamespaceList": { "id": "v1.NamespaceList", "description": "NamespaceList is a list of Namespaces.", "required": [ "items" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.Namespace" }, "description": "Items is the list of Namespace objects in the list. More info: http://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md" } } }, "v1.Namespace": { "id": "v1.Namespace", "description": "Namespace provides a scope for Names. Use of multiple namespaces is optional.", "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1.NamespaceSpec", "description": "Spec defines the behavior of the Namespace. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" }, "status": { "$ref": "v1.NamespaceStatus", "description": "Status describes the current status of a Namespace. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1.NamespaceSpec": { "id": "v1.NamespaceSpec", "description": "NamespaceSpec describes the attributes on a Namespace.", "properties": { "finalizers": { "type": "array", "items": { "$ref": "v1.FinalizerName" }, "description": "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: http://releases.k8s.io/release-1.2/docs/design/namespaces.md#finalizers" } } }, "v1.FinalizerName": { "id": "v1.FinalizerName", "properties": {} }, "v1.NamespaceStatus": { "id": "v1.NamespaceStatus", "description": "NamespaceStatus is information about the current status of a Namespace.", "properties": { "phase": { "type": "string", "description": "Phase is the current lifecycle phase of the namespace. More info: http://releases.k8s.io/release-1.2/docs/design/namespaces.md#phases" } } }, "v1.NodeList": { "id": "v1.NodeList", "description": "NodeList is the whole list of all Nodes which have been registered with master.", "required": [ "items" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.Node" }, "description": "List of nodes" } } }, "v1.Node": { "id": "v1.Node", "description": "Node is a worker node in Kubernetes, formerly known as minion. Each node will have a unique identifier in the cache (i.e. in etcd).", "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1.NodeSpec", "description": "Spec defines the behavior of a node. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" }, "status": { "$ref": "v1.NodeStatus", "description": "Most recently observed status of the node. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1.NodeSpec": { "id": "v1.NodeSpec", "description": "NodeSpec describes the attributes that a node is created with.", "properties": { "podCIDR": { "type": "string", "description": "PodCIDR represents the pod IP range assigned to the node." }, "externalID": { "type": "string", "description": "External ID of the node assigned by some machine database (e.g. a cloud provider). Deprecated." }, "providerID": { "type": "string", "description": "ID of the node assigned by the cloud provider in the format: \u003cProviderName\u003e://\u003cProviderSpecificNodeID\u003e" }, "unschedulable": { "type": "boolean", "description": "Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#manual-node-administration\"`" } } }, "v1.NodeStatus": { "id": "v1.NodeStatus", "description": "NodeStatus is information about the current status of a node.", "required": [ "images" ], "properties": { "capacity": { "type": "any", "description": "Capacity represents the total resources of a node. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#capacity for more details." }, "allocatable": { "type": "any", "description": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity." }, "phase": { "type": "string", "description": "NodePhase is the recently observed lifecycle phase of the node. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-phase" }, "conditions": { "type": "array", "items": { "$ref": "v1.NodeCondition" }, "description": "Conditions is an array of current observed node conditions. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-condition" }, "addresses": { "type": "array", "items": { "$ref": "v1.NodeAddress" }, "description": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-addresses" }, "daemonEndpoints": { "$ref": "v1.NodeDaemonEndpoints", "description": "Endpoints of daemons running on the Node." }, "nodeInfo": { "$ref": "v1.NodeSystemInfo", "description": "Set of ids/uuids to uniquely identify the node. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-info" }, "images": { "type": "array", "items": { "$ref": "v1.ContainerImage" }, "description": "List of container images on this node" } } }, "v1.NodeCondition": { "id": "v1.NodeCondition", "description": "NodeCondition contains condition infromation for a node.", "required": [ "type", "status" ], "properties": { "type": { "type": "string", "description": "Type of node condition." }, "status": { "type": "string", "description": "Status of the condition, one of True, False, Unknown." }, "lastHeartbeatTime": { "type": "string", "description": "Last time we got an update on a given condition." }, "lastTransitionTime": { "type": "string", "description": "Last time the condition transit from one status to another." }, "reason": { "type": "string", "description": "(brief) reason for the condition's last transition." }, "message": { "type": "string", "description": "Human readable message indicating details about last transition." } } }, "v1.NodeAddress": { "id": "v1.NodeAddress", "description": "NodeAddress contains information for the node's address.", "required": [ "type", "address" ], "properties": { "type": { "type": "string", "description": "Node address type, one of Hostname, ExternalIP or InternalIP." }, "address": { "type": "string", "description": "The node address." } } }, "v1.NodeDaemonEndpoints": { "id": "v1.NodeDaemonEndpoints", "description": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", "properties": { "kubeletEndpoint": { "$ref": "v1.DaemonEndpoint", "description": "Endpoint on which Kubelet is listening." } } }, "v1.DaemonEndpoint": { "id": "v1.DaemonEndpoint", "description": "DaemonEndpoint contains information about a single Daemon endpoint.", "required": [ "Port" ], "properties": { "Port": { "type": "integer", "format": "int32", "description": "Port number of the given endpoint." } } }, "v1.NodeSystemInfo": { "id": "v1.NodeSystemInfo", "description": "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.", "required": [ "machineID", "systemUUID", "bootID", "kernelVersion", "osImage", "containerRuntimeVersion", "kubeletVersion", "kubeProxyVersion" ], "properties": { "machineID": { "type": "string", "description": "Machine ID reported by the node." }, "systemUUID": { "type": "string", "description": "System UUID reported by the node." }, "bootID": { "type": "string", "description": "Boot ID reported by the node." }, "kernelVersion": { "type": "string", "description": "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64)." }, "osImage": { "type": "string", "description": "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy))." }, "containerRuntimeVersion": { "type": "string", "description": "ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0)." }, "kubeletVersion": { "type": "string", "description": "Kubelet Version reported by the node." }, "kubeProxyVersion": { "type": "string", "description": "KubeProxy Version reported by the node." } } }, "v1.ContainerImage": { "id": "v1.ContainerImage", "description": "Describe a container image", "required": [ "names" ], "properties": { "names": { "type": "array", "items": { "type": "string" }, "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\"]" }, "sizeBytes": { "type": "integer", "format": "int64", "description": "The size of the image in bytes." } } }, "v1.PersistentVolumeClaimList": { "id": "v1.PersistentVolumeClaimList", "description": "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.", "required": [ "items" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.PersistentVolumeClaim" }, "description": "A list of persistent volume claims. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims" } } }, "v1.PersistentVolumeClaim": { "id": "v1.PersistentVolumeClaim", "description": "PersistentVolumeClaim is a user's request for and claim to a persistent volume", "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1.PersistentVolumeClaimSpec", "description": "Spec defines the desired characteristics of a volume requested by a pod author. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims" }, "status": { "$ref": "v1.PersistentVolumeClaimStatus", "description": "Status represents the current information/status of a persistent volume claim. Read-only. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims" } } }, "v1.PersistentVolumeClaimSpec": { "id": "v1.PersistentVolumeClaimSpec", "description": "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes", "properties": { "accessModes": { "type": "array", "items": { "$ref": "v1.PersistentVolumeAccessMode" }, "description": "AccessModes contains the desired access modes the volume should have. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#access-modes-1" }, "resources": { "$ref": "v1.ResourceRequirements", "description": "Resources represents the minimum resources the volume should have. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#resources" }, "volumeName": { "type": "string", "description": "VolumeName is the binding reference to the PersistentVolume backing this claim." } } }, "v1.PersistentVolumeAccessMode": { "id": "v1.PersistentVolumeAccessMode", "properties": {} }, "v1.ResourceRequirements": { "id": "v1.ResourceRequirements", "description": "ResourceRequirements describes the compute resource requirements.", "properties": { "limits": { "type": "any", "description": "Limits describes the maximum amount of compute resources allowed. More info: http://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications" }, "requests": { "type": "any", "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://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications" } } }, "v1.PersistentVolumeClaimStatus": { "id": "v1.PersistentVolumeClaimStatus", "description": "PersistentVolumeClaimStatus is the current status of a persistent volume claim.", "properties": { "phase": { "type": "string", "description": "Phase represents the current phase of PersistentVolumeClaim." }, "accessModes": { "type": "array", "items": { "$ref": "v1.PersistentVolumeAccessMode" }, "description": "AccessModes contains the actual access modes the volume backing the PVC has. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#access-modes-1" }, "capacity": { "type": "any", "description": "Represents the actual resources of the underlying volume." } } }, "v1.PersistentVolumeList": { "id": "v1.PersistentVolumeList", "description": "PersistentVolumeList is a list of PersistentVolume items.", "required": [ "items" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.PersistentVolume" }, "description": "List of persistent volumes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md" } } }, "v1.PersistentVolume": { "id": "v1.PersistentVolume", "description": "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md", "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1.PersistentVolumeSpec", "description": "Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistent-volumes" }, "status": { "$ref": "v1.PersistentVolumeStatus", "description": "Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistent-volumes" } } }, "v1.PersistentVolumeSpec": { "id": "v1.PersistentVolumeSpec", "description": "PersistentVolumeSpec is the specification of a persistent volume.", "properties": { "capacity": { "type": "any", "description": "A description of the persistent volume's resources and capacity. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#capacity" }, "gcePersistentDisk": { "$ref": "v1.GCEPersistentDiskVolumeSource", "description": "GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk" }, "awsElasticBlockStore": { "$ref": "v1.AWSElasticBlockStoreVolumeSource", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore" }, "hostPath": { "$ref": "v1.HostPathVolumeSource", "description": "HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath" }, "glusterfs": { "$ref": "v1.GlusterfsVolumeSource", "description": "Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md" }, "nfs": { "$ref": "v1.NFSVolumeSource", "description": "NFS represents an NFS mount on the host. Provisioned by an admin. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs" }, "rbd": { "$ref": "v1.RBDVolumeSource", "description": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md" }, "iscsi": { "$ref": "v1.ISCSIVolumeSource", "description": "ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin." }, "cinder": { "$ref": "v1.CinderVolumeSource", "description": "Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md" }, "cephfs": { "$ref": "v1.CephFSVolumeSource", "description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime" }, "fc": { "$ref": "v1.FCVolumeSource", "description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod." }, "flocker": { "$ref": "v1.FlockerVolumeSource", "description": "Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running" }, "flexVolume": { "$ref": "v1.FlexVolumeSource", "description": "FlexVolume represents a generic volume resource that is provisioned/attached using a exec based plugin. This is an alpha feature and may change in future." }, "azureFile": { "$ref": "v1.AzureFileVolumeSource", "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod." }, "accessModes": { "type": "array", "items": { "$ref": "v1.PersistentVolumeAccessMode" }, "description": "AccessModes contains all ways the volume can be mounted. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#access-modes" }, "claimRef": { "$ref": "v1.ObjectReference", "description": "ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#binding" }, "persistentVolumeReclaimPolicy": { "type": "string", "description": "What happens to a persistent volume when released from its claim. Valid options are Retain (default) and Recycle. Recyling must be supported by the volume plugin underlying this persistent volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#recycling-policy" } } }, "v1.GCEPersistentDiskVolumeSource": { "id": "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": [ "pdName" ], "properties": { "pdName": { "type": "string", "description": "Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk" }, "fsType": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk" }, "partition": { "type": "integer", "format": "int32", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk" }, "readOnly": { "type": "boolean", "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk" } } }, "v1.AWSElasticBlockStoreVolumeSource": { "id": "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": { "volumeID": { "type": "string", "description": "Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore" }, "fsType": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore" }, "partition": { "type": "integer", "format": "int32", "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)." }, "readOnly": { "type": "boolean", "description": "Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore" } } }, "v1.HostPathVolumeSource": { "id": "v1.HostPathVolumeSource", "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", "required": [ "path" ], "properties": { "path": { "type": "string", "description": "Path of the directory on the host. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath" } } }, "v1.GlusterfsVolumeSource": { "id": "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": { "type": "string", "description": "EndpointsName is the endpoint name that details Glusterfs topology. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod" }, "path": { "type": "string", "description": "Path is the Glusterfs volume path. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod" }, "readOnly": { "type": "boolean", "description": "ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod" } } }, "v1.NFSVolumeSource": { "id": "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": { "server": { "type": "string", "description": "Server is the hostname or IP address of the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs" }, "path": { "type": "string", "description": "Path that is exported by the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs" }, "readOnly": { "type": "boolean", "description": "ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs" } } }, "v1.RBDVolumeSource": { "id": "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", "pool", "user", "keyring", "secretRef" ], "properties": { "monitors": { "type": "array", "items": { "type": "string" }, "description": "A collection of Ceph monitors. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" }, "image": { "type": "string", "description": "The rados image name. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" }, "fsType": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#rbd" }, "pool": { "type": "string", "description": "The rados pool name. Default is rbd. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it." }, "user": { "type": "string", "description": "The rados user name. Default is admin. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" }, "keyring": { "type": "string", "description": "Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" }, "secretRef": { "$ref": "v1.LocalObjectReference", "description": "SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is empty. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" }, "readOnly": { "type": "boolean", "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" } } }, "v1.LocalObjectReference": { "id": "v1.LocalObjectReference", "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", "properties": { "name": { "type": "string", "description": "Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" } } }, "v1.ISCSIVolumeSource": { "id": "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" ], "properties": { "targetPortal": { "type": "string", "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)." }, "iqn": { "type": "string", "description": "Target iSCSI Qualified Name." }, "lun": { "type": "integer", "format": "int32", "description": "iSCSI target lun number." }, "iscsiInterface": { "type": "string", "description": "Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport." }, "fsType": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#iscsi" }, "readOnly": { "type": "boolean", "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false." } } }, "v1.CinderVolumeSource": { "id": "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": { "volumeID": { "type": "string", "description": "volume id used to identify the volume in cinder More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md" }, "fsType": { "type": "string", "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/release-1.2/examples/mysql-cinder-pd/README.md" }, "readOnly": { "type": "boolean", "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md" } } }, "v1.CephFSVolumeSource": { "id": "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": { "type": "array", "items": { "type": "string" }, "description": "Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it" }, "path": { "type": "string", "description": "Optional: Used as the mounted root, rather than the full Ceph tree, default is /" }, "user": { "type": "string", "description": "Optional: User is the rados user name, default is admin More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it" }, "secretFile": { "type": "string", "description": "Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it" }, "secretRef": { "$ref": "v1.LocalObjectReference", "description": "Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it" }, "readOnly": { "type": "boolean", "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it" } } }, "v1.FCVolumeSource": { "id": "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": { "targetWWNs": { "type": "array", "items": { "type": "string" }, "description": "Required: FC target world wide names (WWNs)" }, "lun": { "type": "integer", "format": "int32", "description": "Required: FC target lun number" }, "fsType": { "type": "string", "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." }, "readOnly": { "type": "boolean", "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts." } } }, "v1.FlockerVolumeSource": { "id": "v1.FlockerVolumeSource", "description": "Represents a Flocker volume mounted by the Flocker agent. Flocker volumes do not support ownership management or SELinux relabeling.", "required": [ "datasetName" ], "properties": { "datasetName": { "type": "string", "description": "Required: the volume name. This is going to be store on metadata -\u003e name on the payload for Flocker" } } }, "v1.FlexVolumeSource": { "id": "v1.FlexVolumeSource", "description": "FlexVolume represents a generic volume resource that is provisioned/attached using a exec based plugin. This is an alpha feature and may change in future.", "required": [ "driver" ], "properties": { "driver": { "type": "string", "description": "Driver is the name of the driver to use for this volume." }, "fsType": { "type": "string", "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." }, "secretRef": { "$ref": "v1.LocalObjectReference", "description": "Optional: SecretRef is reference to the authentication secret for User, default is empty." }, "readOnly": { "type": "boolean", "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts." }, "options": { "type": "any", "description": "Optional: Extra command options if any." } } }, "v1.AzureFileVolumeSource": { "id": "v1.AzureFileVolumeSource", "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", "required": [ "secretName", "shareName" ], "properties": { "secretName": { "type": "string", "description": "the name of secret that contains Azure Storage Account Name and Key" }, "shareName": { "type": "string", "description": "Share Name" }, "readOnly": { "type": "boolean", "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts." } } }, "v1.PersistentVolumeStatus": { "id": "v1.PersistentVolumeStatus", "description": "PersistentVolumeStatus is the current status of a persistent volume.", "properties": { "phase": { "type": "string", "description": "Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#phase" }, "message": { "type": "string", "description": "A human-readable message indicating details about why the volume is in this state." }, "reason": { "type": "string", "description": "Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI." } } }, "v1.PodList": { "id": "v1.PodList", "description": "PodList is a list of Pods.", "required": [ "items" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.Pod" }, "description": "List of pods. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pods.md" } } }, "v1.Pod": { "id": "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": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1.PodSpec", "description": "Specification of the desired behavior of the pod. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" }, "status": { "$ref": "v1.PodStatus", "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/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1.PodSpec": { "id": "v1.PodSpec", "description": "PodSpec is a description of a pod.", "required": [ "containers" ], "properties": { "volumes": { "type": "array", "items": { "$ref": "v1.Volume" }, "description": "List of volumes that can be mounted by containers belonging to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md" }, "containers": { "type": "array", "items": { "$ref": "v1.Container" }, "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://releases.k8s.io/release-1.2/docs/user-guide/containers.md" }, "restartPolicy": { "type": "string", "description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#restartpolicy" }, "terminationGracePeriodSeconds": { "type": "integer", "format": "int64", "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." }, "activeDeadlineSeconds": { "type": "integer", "format": "int64", "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." }, "dnsPolicy": { "type": "string", "description": "Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\"." }, "nodeSelector": { "type": "any", "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://releases.k8s.io/release-1.2/docs/user-guide/node-selection/README.md" }, "serviceAccountName": { "type": "string", "description": "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/release-1.2/docs/design/service_accounts.md" }, "serviceAccount": { "type": "string", "description": "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead." }, "nodeName": { "type": "string", "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." }, "hostNetwork": { "type": "boolean", "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." }, "hostPID": { "type": "boolean", "description": "Use the host's pid namespace. Optional: Default to false." }, "hostIPC": { "type": "boolean", "description": "Use the host's ipc namespace. Optional: Default to false." }, "securityContext": { "$ref": "v1.PodSecurityContext", "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." }, "imagePullSecrets": { "type": "array", "items": { "$ref": "v1.LocalObjectReference" }, "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://releases.k8s.io/release-1.2/docs/user-guide/images.md#specifying-imagepullsecrets-on-a-pod" } } }, "v1.Volume": { "id": "v1.Volume", "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", "required": [ "name" ], "properties": { "name": { "type": "string", "description": "Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" }, "hostPath": { "$ref": "v1.HostPathVolumeSource", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath" }, "emptyDir": { "$ref": "v1.EmptyDirVolumeSource", "description": "EmptyDir represents a temporary directory that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir" }, "gcePersistentDisk": { "$ref": "v1.GCEPersistentDiskVolumeSource", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk" }, "awsElasticBlockStore": { "$ref": "v1.AWSElasticBlockStoreVolumeSource", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore" }, "gitRepo": { "$ref": "v1.GitRepoVolumeSource", "description": "GitRepo represents a git repository at a particular revision." }, "secret": { "$ref": "v1.SecretVolumeSource", "description": "Secret represents a secret that should populate this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets" }, "nfs": { "$ref": "v1.NFSVolumeSource", "description": "NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs" }, "iscsi": { "$ref": "v1.ISCSIVolumeSource", "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/release-1.2/examples/iscsi/README.md" }, "glusterfs": { "$ref": "v1.GlusterfsVolumeSource", "description": "Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md" }, "persistentVolumeClaim": { "$ref": "v1.PersistentVolumeClaimVolumeSource", "description": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims" }, "rbd": { "$ref": "v1.RBDVolumeSource", "description": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md" }, "flexVolume": { "$ref": "v1.FlexVolumeSource", "description": "FlexVolume represents a generic volume resource that is provisioned/attached using a exec based plugin. This is an alpha feature and may change in future." }, "cinder": { "$ref": "v1.CinderVolumeSource", "description": "Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md" }, "cephfs": { "$ref": "v1.CephFSVolumeSource", "description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime" }, "flocker": { "$ref": "v1.FlockerVolumeSource", "description": "Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running" }, "downwardAPI": { "$ref": "v1.DownwardAPIVolumeSource", "description": "DownwardAPI represents downward API about the pod that should populate this volume" }, "fc": { "$ref": "v1.FCVolumeSource", "description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod." }, "azureFile": { "$ref": "v1.AzureFileVolumeSource", "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod." }, "configMap": { "$ref": "v1.ConfigMapVolumeSource", "description": "ConfigMap represents a configMap that should populate this volume" } } }, "v1.EmptyDirVolumeSource": { "id": "v1.EmptyDirVolumeSource", "description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", "properties": { "medium": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir" } } }, "v1.GitRepoVolumeSource": { "id": "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": { "repository": { "type": "string", "description": "Repository URL" }, "revision": { "type": "string", "description": "Commit hash for the specified revision." }, "directory": { "type": "string", "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." } } }, "v1.SecretVolumeSource": { "id": "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": { "secretName": { "type": "string", "description": "Name of the secret in the pod's namespace to use. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets" } } }, "v1.PersistentVolumeClaimVolumeSource": { "id": "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": { "type": "string", "description": "ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims" }, "readOnly": { "type": "boolean", "description": "Will force the ReadOnly setting in VolumeMounts. Default false." } } }, "v1.DownwardAPIVolumeSource": { "id": "v1.DownwardAPIVolumeSource", "description": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", "properties": { "items": { "type": "array", "items": { "$ref": "v1.DownwardAPIVolumeFile" }, "description": "Items is a list of downward API volume file" } } }, "v1.DownwardAPIVolumeFile": { "id": "v1.DownwardAPIVolumeFile", "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", "required": [ "path", "fieldRef" ], "properties": { "path": { "type": "string", "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 '..'" }, "fieldRef": { "$ref": "v1.ObjectFieldSelector", "description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported." } } }, "v1.ObjectFieldSelector": { "id": "v1.ObjectFieldSelector", "description": "ObjectFieldSelector selects an APIVersioned field of an object.", "required": [ "fieldPath" ], "properties": { "apiVersion": { "type": "string", "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\"." }, "fieldPath": { "type": "string", "description": "Path of the field to select in the specified API version." } } }, "v1.ConfigMapVolumeSource": { "id": "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": { "name": { "type": "string", "description": "Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" }, "items": { "type": "array", "items": { "$ref": "v1.KeyToPath" }, "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 '..'." } } }, "v1.KeyToPath": { "id": "v1.KeyToPath", "description": "Maps a string key to a path within a volume.", "required": [ "key", "path" ], "properties": { "key": { "type": "string", "description": "The key to project." }, "path": { "type": "string", "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 '..'." } } }, "v1.Container": { "id": "v1.Container", "description": "A single application container that you want to run within a pod.", "required": [ "name" ], "properties": { "name": { "type": "string", "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." }, "image": { "type": "string", "description": "Docker image name. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md" }, "command": { "type": "array", "items": { "type": "string" }, "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://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands" }, "args": { "type": "array", "items": { "type": "string" }, "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://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands" }, "workingDir": { "type": "string", "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." }, "ports": { "type": "array", "items": { "$ref": "v1.ContainerPort" }, "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." }, "env": { "type": "array", "items": { "$ref": "v1.EnvVar" }, "description": "List of environment variables to set in the container. Cannot be updated." }, "resources": { "$ref": "v1.ResourceRequirements", "description": "Compute Resources required by this container. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#resources" }, "volumeMounts": { "type": "array", "items": { "$ref": "v1.VolumeMount" }, "description": "Pod volumes to mount into the container's filesyste. Cannot be updated." }, "livenessProbe": { "$ref": "v1.Probe", "description": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes" }, "readinessProbe": { "$ref": "v1.Probe", "description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes" }, "lifecycle": { "$ref": "v1.Lifecycle", "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated." }, "terminationMessagePath": { "type": "string", "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." }, "imagePullPolicy": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/images.md#updating-images" }, "securityContext": { "$ref": "v1.SecurityContext", "description": "Security options the pod should run with. More info: http://releases.k8s.io/release-1.2/docs/design/security_context.md" }, "stdin": { "type": "boolean", "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." }, "stdinOnce": { "type": "boolean", "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" }, "tty": { "type": "boolean", "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false." } } }, "v1.ContainerPort": { "id": "v1.ContainerPort", "description": "ContainerPort represents a network port in a single container.", "required": [ "containerPort" ], "properties": { "name": { "type": "string", "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." }, "hostPort": { "type": "integer", "format": "int32", "description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 \u003c x \u003c 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this." }, "containerPort": { "type": "integer", "format": "int32", "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 \u003c x \u003c 65536." }, "protocol": { "type": "string", "description": "Protocol for port. Must be UDP or TCP. Defaults to \"TCP\"." }, "hostIP": { "type": "string", "description": "What host IP to bind the external port to." } } }, "v1.EnvVar": { "id": "v1.EnvVar", "description": "EnvVar represents an environment variable present in a Container.", "required": [ "name" ], "properties": { "name": { "type": "string", "description": "Name of the environment variable. Must be a C_IDENTIFIER." }, "value": { "type": "string", "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 \"\"." }, "valueFrom": { "$ref": "v1.EnvVarSource", "description": "Source for the environment variable's value. Cannot be used if value is not empty." } } }, "v1.EnvVarSource": { "id": "v1.EnvVarSource", "description": "EnvVarSource represents a source for the value of an EnvVar.", "properties": { "fieldRef": { "$ref": "v1.ObjectFieldSelector", "description": "Selects a field of the pod; only name and namespace are supported." }, "configMapKeyRef": { "$ref": "v1.ConfigMapKeySelector", "description": "Selects a key of a ConfigMap." }, "secretKeyRef": { "$ref": "v1.SecretKeySelector", "description": "Selects a key of a secret in the pod's namespace" } } }, "v1.ConfigMapKeySelector": { "id": "v1.ConfigMapKeySelector", "description": "Selects a key from a ConfigMap.", "required": [ "key" ], "properties": { "name": { "type": "string", "description": "Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" }, "key": { "type": "string", "description": "The key to select." } } }, "v1.SecretKeySelector": { "id": "v1.SecretKeySelector", "description": "SecretKeySelector selects a key of a Secret.", "required": [ "key" ], "properties": { "name": { "type": "string", "description": "Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" }, "key": { "type": "string", "description": "The key of the secret to select from. Must be a valid secret key." } } }, "v1.VolumeMount": { "id": "v1.VolumeMount", "description": "VolumeMount describes a mounting of a Volume within a container.", "required": [ "name", "mountPath" ], "properties": { "name": { "type": "string", "description": "This must match the Name of a Volume." }, "readOnly": { "type": "boolean", "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." }, "mountPath": { "type": "string", "description": "Path within the container at which the volume should be mounted. Must not contain ':'." } } }, "v1.Probe": { "id": "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": { "$ref": "v1.ExecAction", "description": "One and only one of the following should be specified. Exec specifies the action to take." }, "httpGet": { "$ref": "v1.HTTPGetAction", "description": "HTTPGet specifies the http request to perform." }, "tcpSocket": { "$ref": "v1.TCPSocketAction", "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported" }, "initialDelaySeconds": { "type": "integer", "format": "int32", "description": "Number of seconds after the container has started before liveness probes are initiated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes" }, "timeoutSeconds": { "type": "integer", "format": "int32", "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes" }, "periodSeconds": { "type": "integer", "format": "int32", "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." }, "successThreshold": { "type": "integer", "format": "int32", "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." }, "failureThreshold": { "type": "integer", "format": "int32", "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." } } }, "v1.ExecAction": { "id": "v1.ExecAction", "description": "ExecAction describes a \"run in container\" action.", "properties": { "command": { "type": "array", "items": { "type": "string" }, "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." } } }, "v1.HTTPGetAction": { "id": "v1.HTTPGetAction", "description": "HTTPGetAction describes an action based on HTTP Get requests.", "required": [ "port" ], "properties": { "path": { "type": "string", "description": "Path to access on the HTTP server." }, "port": { "type": "string", "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." }, "host": { "type": "string", "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead." }, "scheme": { "type": "string", "description": "Scheme to use for connecting to the host. Defaults to HTTP." }, "httpHeaders": { "type": "array", "items": { "$ref": "v1.HTTPHeader" }, "description": "Custom headers to set in the request. HTTP allows repeated headers." } } }, "v1.HTTPHeader": { "id": "v1.HTTPHeader", "description": "HTTPHeader describes a custom header to be used in HTTP probes", "required": [ "name", "value" ], "properties": { "name": { "type": "string", "description": "The header field name" }, "value": { "type": "string", "description": "The header field value" } } }, "v1.TCPSocketAction": { "id": "v1.TCPSocketAction", "description": "TCPSocketAction describes an action based on opening a socket", "required": [ "port" ], "properties": { "port": { "type": "string", "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." } } }, "v1.Lifecycle": { "id": "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": { "$ref": "v1.Handler", "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://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details" }, "preStop": { "$ref": "v1.Handler", "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://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details" } } }, "v1.Handler": { "id": "v1.Handler", "description": "Handler defines a specific action that should be taken", "properties": { "exec": { "$ref": "v1.ExecAction", "description": "One and only one of the following should be specified. Exec specifies the action to take." }, "httpGet": { "$ref": "v1.HTTPGetAction", "description": "HTTPGet specifies the http request to perform." }, "tcpSocket": { "$ref": "v1.TCPSocketAction", "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported" } } }, "v1.SecurityContext": { "id": "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": { "capabilities": { "$ref": "v1.Capabilities", "description": "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime." }, "privileged": { "type": "boolean", "description": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false." }, "seLinuxOptions": { "$ref": "v1.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." }, "runAsUser": { "type": "integer", "format": "int64", "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." }, "runAsNonRoot": { "type": "boolean", "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." }, "readOnlyRootFilesystem": { "type": "boolean", "description": "Whether this container has a read-only root filesystem. Default is false." } } }, "v1.Capabilities": { "id": "v1.Capabilities", "description": "Adds and removes POSIX capabilities from running containers.", "properties": { "add": { "type": "array", "items": { "$ref": "v1.Capability" }, "description": "Added capabilities" }, "drop": { "type": "array", "items": { "$ref": "v1.Capability" }, "description": "Removed capabilities" } } }, "v1.Capability": { "id": "v1.Capability", "properties": {} }, "v1.SELinuxOptions": { "id": "v1.SELinuxOptions", "description": "SELinuxOptions are the labels to be applied to the container", "properties": { "user": { "type": "string", "description": "User is a SELinux user label that applies to the container." }, "role": { "type": "string", "description": "Role is a SELinux role label that applies to the container." }, "type": { "type": "string", "description": "Type is a SELinux type label that applies to the container." }, "level": { "type": "string", "description": "Level is SELinux level label that applies to the container." } } }, "v1.PodSecurityContext": { "id": "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": { "seLinuxOptions": { "$ref": "v1.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." }, "runAsUser": { "type": "integer", "format": "int64", "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." }, "runAsNonRoot": { "type": "boolean", "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." }, "supplementalGroups": { "type": "array", "items": { "$ref": "integer" }, "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." }, "fsGroup": { "type": "integer", "format": "int64", "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 " } } }, "integer": { "id": "integer", "properties": {} }, "v1.PodStatus": { "id": "v1.PodStatus", "description": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system.", "properties": { "phase": { "type": "string", "description": "Current condition of the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-phase" }, "conditions": { "type": "array", "items": { "$ref": "v1.PodCondition" }, "description": "Current service state of pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-conditions" }, "message": { "type": "string", "description": "A human readable message indicating details about why the pod is in this condition." }, "reason": { "type": "string", "description": "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk'" }, "hostIP": { "type": "string", "description": "IP address of the host to which the pod is assigned. Empty if not yet scheduled." }, "podIP": { "type": "string", "description": "IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated." }, "startTime": { "type": "string", "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." }, "containerStatuses": { "type": "array", "items": { "$ref": "v1.ContainerStatus" }, "description": "The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-statuses" } } }, "v1.PodCondition": { "id": "v1.PodCondition", "description": "PodCondition contains details for the current condition of this pod.", "required": [ "type", "status" ], "properties": { "type": { "type": "string", "description": "Type is the type of the condition. Currently only Ready. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-conditions" }, "status": { "type": "string", "description": "Status is the status of the condition. Can be True, False, Unknown. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-conditions" }, "lastProbeTime": { "type": "string", "description": "Last time we probed the condition." }, "lastTransitionTime": { "type": "string", "description": "Last time the condition transitioned from one status to another." }, "reason": { "type": "string", "description": "Unique, one-word, CamelCase reason for the condition's last transition." }, "message": { "type": "string", "description": "Human-readable message indicating details about last transition." } } }, "v1.ContainerStatus": { "id": "v1.ContainerStatus", "description": "ContainerStatus contains details for the current status of this container.", "required": [ "name", "ready", "restartCount", "image", "imageID" ], "properties": { "name": { "type": "string", "description": "This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated." }, "state": { "$ref": "v1.ContainerState", "description": "Details about the container's current condition." }, "lastState": { "$ref": "v1.ContainerState", "description": "Details about the container's last termination condition." }, "ready": { "type": "boolean", "description": "Specifies whether the container has passed its readiness probe." }, "restartCount": { "type": "integer", "format": "int32", "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." }, "image": { "type": "string", "description": "The image the container is running. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md" }, "imageID": { "type": "string", "description": "ImageID of the container's image." }, "containerID": { "type": "string", "description": "Container's ID in the format 'docker://\u003ccontainer_id\u003e'. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#container-information" } } }, "v1.ContainerState": { "id": "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": { "waiting": { "$ref": "v1.ContainerStateWaiting", "description": "Details about a waiting container" }, "running": { "$ref": "v1.ContainerStateRunning", "description": "Details about a running container" }, "terminated": { "$ref": "v1.ContainerStateTerminated", "description": "Details about a terminated container" } } }, "v1.ContainerStateWaiting": { "id": "v1.ContainerStateWaiting", "description": "ContainerStateWaiting is a waiting state of a container.", "properties": { "reason": { "type": "string", "description": "(brief) reason the container is not yet running." }, "message": { "type": "string", "description": "Message regarding why the container is not yet running." } } }, "v1.ContainerStateRunning": { "id": "v1.ContainerStateRunning", "description": "ContainerStateRunning is a running state of a container.", "properties": { "startedAt": { "type": "string", "description": "Time at which the container was last (re-)started" } } }, "v1.ContainerStateTerminated": { "id": "v1.ContainerStateTerminated", "description": "ContainerStateTerminated is a terminated state of a container.", "required": [ "exitCode" ], "properties": { "exitCode": { "type": "integer", "format": "int32", "description": "Exit status from the last termination of the container" }, "signal": { "type": "integer", "format": "int32", "description": "Signal from the last termination of the container" }, "reason": { "type": "string", "description": "(brief) reason from the last termination of the container" }, "message": { "type": "string", "description": "Message regarding the last termination of the container" }, "startedAt": { "type": "string", "description": "Time at which previous execution of the container started" }, "finishedAt": { "type": "string", "description": "Time at which the container last terminated" }, "containerID": { "type": "string", "description": "Container's ID in the format 'docker://\u003ccontainer_id\u003e'" } } }, "v1.PodTemplateList": { "id": "v1.PodTemplateList", "description": "PodTemplateList is a list of PodTemplates.", "required": [ "items" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.PodTemplate" }, "description": "List of pod templates" } } }, "v1.PodTemplate": { "id": "v1.PodTemplate", "description": "PodTemplate describes a template for creating copies of a predefined pod.", "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "template": { "$ref": "v1.PodTemplateSpec", "description": "Template defines the pods that will be created from this pod template. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1.PodTemplateSpec": { "id": "v1.PodTemplateSpec", "description": "PodTemplateSpec describes the data a pod should have when created from a template", "properties": { "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1.PodSpec", "description": "Specification of the desired behavior of the pod. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1.ReplicationControllerList": { "id": "v1.ReplicationControllerList", "description": "ReplicationControllerList is a collection of replication controllers.", "required": [ "items" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.ReplicationController" }, "description": "List of replication controllers. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md" } } }, "v1.ReplicationController": { "id": "v1.ReplicationController", "description": "ReplicationController represents the configuration of a replication controller.", "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "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/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1.ReplicationControllerSpec", "description": "Spec defines the specification of the desired behavior of the replication controller. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" }, "status": { "$ref": "v1.ReplicationControllerStatus", "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/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1.ReplicationControllerSpec": { "id": "v1.ReplicationControllerSpec", "description": "ReplicationControllerSpec is the specification of a replication controller.", "properties": { "replicas": { "type": "integer", "format": "int32", "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://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#what-is-a-replication-controller" }, "selector": { "type": "any", "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://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors" }, "template": { "$ref": "v1.PodTemplateSpec", "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://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#pod-template" } } }, "v1.ReplicationControllerStatus": { "id": "v1.ReplicationControllerStatus", "description": "ReplicationControllerStatus represents the current status of a replication controller.", "required": [ "replicas" ], "properties": { "replicas": { "type": "integer", "format": "int32", "description": "Replicas is the most recently oberved number of replicas. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#what-is-a-replication-controller" }, "fullyLabeledReplicas": { "type": "integer", "format": "int32", "description": "The number of pods that have labels matching the labels of the pod template of the replication controller." }, "observedGeneration": { "type": "integer", "format": "int64", "description": "ObservedGeneration reflects the generation of the most recently observed replication controller." } } }, "v1.Scale": { "id": "v1.Scale", "description": "Scale represents a scaling request for a resource.", "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object metadata; More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata." }, "spec": { "$ref": "v1.ScaleSpec", "description": "defines the behavior of the scale. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status." }, "status": { "$ref": "v1.ScaleStatus", "description": "current status of the scale. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status. Read-only." } } }, "v1.ScaleSpec": { "id": "v1.ScaleSpec", "description": "ScaleSpec describes the attributes of a scale subresource.", "properties": { "replicas": { "type": "integer", "format": "int32", "description": "desired number of instances for the scaled object." } } }, "v1.ScaleStatus": { "id": "v1.ScaleStatus", "description": "ScaleStatus represents the current status of a scale subresource.", "required": [ "replicas" ], "properties": { "replicas": { "type": "integer", "format": "int32", "description": "actual number of observed instances of the scaled object." }, "selector": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors" } } }, "v1.ResourceQuotaList": { "id": "v1.ResourceQuotaList", "description": "ResourceQuotaList is a list of ResourceQuota items.", "required": [ "items" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.ResourceQuota" }, "description": "Items is a list of ResourceQuota objects. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota" } } }, "v1.ResourceQuota": { "id": "v1.ResourceQuota", "description": "ResourceQuota sets aggregate quota restrictions enforced per namespace", "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1.ResourceQuotaSpec", "description": "Spec defines the desired quota. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" }, "status": { "$ref": "v1.ResourceQuotaStatus", "description": "Status defines the actual enforced quota and its current usage. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1.ResourceQuotaSpec": { "id": "v1.ResourceQuotaSpec", "description": "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.", "properties": { "hard": { "type": "any", "description": "Hard is the set of desired hard limits for each named resource. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota" }, "scopes": { "type": "array", "items": { "$ref": "v1.ResourceQuotaScope" }, "description": "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects." } } }, "v1.ResourceQuotaScope": { "id": "v1.ResourceQuotaScope", "properties": {} }, "v1.ResourceQuotaStatus": { "id": "v1.ResourceQuotaStatus", "description": "ResourceQuotaStatus defines the enforced hard limits and observed use.", "properties": { "hard": { "type": "any", "description": "Hard is the set of enforced hard limits for each named resource. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota" }, "used": { "type": "any", "description": "Used is the current observed total usage of the resource in the namespace." } } }, "v1.SecretList": { "id": "v1.SecretList", "description": "SecretList is a list of Secret.", "required": [ "items" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.Secret" }, "description": "Items is a list of secret objects. More info: http://releases.k8s.io/release-1.2/docs/user-guide/secrets.md" } } }, "v1.Secret": { "id": "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": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "data": { "type": "any", "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": { "type": "string", "description": "Used to facilitate programmatic handling of secret data." } } }, "v1.ServiceAccountList": { "id": "v1.ServiceAccountList", "description": "ServiceAccountList is a list of ServiceAccount objects", "required": [ "items" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.ServiceAccount" }, "description": "List of ServiceAccounts. More info: http://releases.k8s.io/release-1.2/docs/design/service_accounts.md#service-accounts" } } }, "v1.ServiceAccount": { "id": "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": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "secrets": { "type": "array", "items": { "$ref": "v1.ObjectReference" }, "description": "Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: http://releases.k8s.io/release-1.2/docs/user-guide/secrets.md" }, "imagePullSecrets": { "type": "array", "items": { "$ref": "v1.LocalObjectReference" }, "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://releases.k8s.io/release-1.2/docs/user-guide/secrets.md#manually-specifying-an-imagepullsecret" } } }, "v1.ServiceList": { "id": "v1.ServiceList", "description": "ServiceList holds a list of services.", "required": [ "items" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1.Service" }, "description": "List of services" } } }, "v1.Service": { "id": "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": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1.ServiceSpec", "description": "Spec defines the behavior of a service. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" }, "status": { "$ref": "v1.ServiceStatus", "description": "Most recently observed status of the service. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1.ServiceSpec": { "id": "v1.ServiceSpec", "description": "ServiceSpec describes the attributes that a user creates on a service.", "required": [ "ports" ], "properties": { "ports": { "type": "array", "items": { "$ref": "v1.ServicePort" }, "description": "The list of ports that are exposed by this service. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#virtual-ips-and-service-proxies" }, "selector": { "type": "any", "description": "This service will route traffic to pods having labels matching this selector. Label keys and values that must match in order to receive traffic for this service. If empty, all pods are selected, if not specified, endpoints must be manually specified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#overview" }, "clusterIP": { "type": "string", "description": "ClusterIP is usually assigned by the master and is the IP address of the service. If specified, it will be allocated to the service if it is unused or else creation of the service will fail. Valid values are None, empty string (\"\"), or a valid IP address. 'None' can be specified for a headless service when proxying is not required. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#virtual-ips-and-service-proxies" }, "type": { "type": "string", "description": "Type of exposed service. Must be ClusterIP, NodePort, or LoadBalancer. Defaults to ClusterIP. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#external-services" }, "externalIPs": { "type": "array", "items": { "type": "string" }, "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." }, "deprecatedPublicIPs": { "type": "array", "items": { "type": "string" }, "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." }, "sessionAffinity": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/services.md#virtual-ips-and-service-proxies" }, "loadBalancerIP": { "type": "string", "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." } } }, "v1.ServicePort": { "id": "v1.ServicePort", "description": "ServicePort contains information on service's port.", "required": [ "port" ], "properties": { "name": { "type": "string", "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." }, "protocol": { "type": "string", "description": "The IP protocol for this port. Supports \"TCP\" and \"UDP\". Default is TCP." }, "port": { "type": "integer", "format": "int32", "description": "The port that will be exposed by this service." }, "targetPort": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/services.md#defining-a-service" }, "nodePort": { "type": "integer", "format": "int32", "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://releases.k8s.io/release-1.2/docs/user-guide/services.md#type--nodeport" } } }, "v1.ServiceStatus": { "id": "v1.ServiceStatus", "description": "ServiceStatus represents the current status of a service.", "properties": { "loadBalancer": { "$ref": "v1.LoadBalancerStatus", "description": "LoadBalancer contains the current status of the load-balancer, if one is present." } } }, "v1.LoadBalancerStatus": { "id": "v1.LoadBalancerStatus", "description": "LoadBalancerStatus represents the status of a load-balancer.", "properties": { "ingress": { "type": "array", "items": { "$ref": "v1.LoadBalancerIngress" }, "description": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points." } } }, "v1.LoadBalancerIngress": { "id": "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": { "ip": { "type": "string", "description": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)" }, "hostname": { "type": "string", "description": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)" } } } } }python-k8sclient-0.4.0/k8sclient/templates/extensions_v1beta1.json0000664000567000056710000103167613046233226026435 0ustar jenkinsjenkins00000000000000{ "swaggerVersion": "1.2", "apiVersion": "extensions/v1beta1", "basePath": "https://127.0.0.1:443", "resourcePath": "/apis/extensions/v1beta1", "apis": [ { "path": "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.DaemonSetList", "method": "GET", "summary": "list or watch objects of kind DaemonSet", "nickname": "listNamespacedDaemonSet", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.DaemonSetList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.DaemonSet", "method": "POST", "summary": "create a DaemonSet", "nickname": "createNamespacedDaemonSet", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1beta1.DaemonSet", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.DaemonSet" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete collection of DaemonSet", "nickname": "deletecollectionNamespacedDaemonSet", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of DaemonSet", "nickname": "watchNamespacedDaemonSetList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.DaemonSet", "method": "GET", "summary": "read the specified DaemonSet", "nickname": "readNamespacedDaemonSet", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "export", "description": "Should this value be exported. Export strips fields that a user can not specify.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "exact", "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the DaemonSet", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.DaemonSet" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.DaemonSet", "method": "PUT", "summary": "replace the specified DaemonSet", "nickname": "replaceNamespacedDaemonSet", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1beta1.DaemonSet", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the DaemonSet", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.DaemonSet" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.DaemonSet", "method": "PATCH", "summary": "partially update the specified DaemonSet", "nickname": "patchNamespacedDaemonSet", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the DaemonSet", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.DaemonSet" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete a DaemonSet", "nickname": "deleteNamespacedDaemonSet", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.DeleteOptions", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the DaemonSet", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets/{name}", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch changes to an object of kind DaemonSet", "nickname": "watchNamespacedDaemonSet", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the DaemonSet", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/daemonsets", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.DaemonSetList", "method": "GET", "summary": "list or watch objects of kind DaemonSet", "nickname": "listDaemonSet", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.DaemonSetList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/watch/daemonsets", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of DaemonSet", "nickname": "watchDaemonSetList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.DaemonSet", "method": "PUT", "summary": "replace status of the specified DaemonSet", "nickname": "replaceNamespacedDaemonSetStatus", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1beta1.DaemonSet", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the DaemonSet", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.DaemonSet" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/namespaces/{namespace}/deployments", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.DeploymentList", "method": "GET", "summary": "list or watch objects of kind Deployment", "nickname": "listNamespacedDeployment", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.DeploymentList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.Deployment", "method": "POST", "summary": "create a Deployment", "nickname": "createNamespacedDeployment", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1beta1.Deployment", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Deployment" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete collection of Deployment", "nickname": "deletecollectionNamespacedDeployment", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of Deployment", "nickname": "watchNamespacedDeploymentList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.Deployment", "method": "GET", "summary": "read the specified Deployment", "nickname": "readNamespacedDeployment", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "export", "description": "Should this value be exported. Export strips fields that a user can not specify.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "exact", "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Deployment", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Deployment" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.Deployment", "method": "PUT", "summary": "replace the specified Deployment", "nickname": "replaceNamespacedDeployment", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1beta1.Deployment", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Deployment", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Deployment" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.Deployment", "method": "PATCH", "summary": "partially update the specified Deployment", "nickname": "patchNamespacedDeployment", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Deployment", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Deployment" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete a Deployment", "nickname": "deleteNamespacedDeployment", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.DeleteOptions", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Deployment", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments/{name}", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch changes to an object of kind Deployment", "nickname": "watchNamespacedDeployment", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Deployment", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/deployments", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.DeploymentList", "method": "GET", "summary": "list or watch objects of kind Deployment", "nickname": "listDeployment", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.DeploymentList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/watch/deployments", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of Deployment", "nickname": "watchDeploymentList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.DeploymentRollback", "method": "POST", "summary": "create rollback of a DeploymentRollback", "nickname": "createNamespacedDeploymentRollbackRollback", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1beta1.DeploymentRollback", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the DeploymentRollback", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.DeploymentRollback" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.Scale", "method": "GET", "summary": "read scale of the specified Scale", "nickname": "readNamespacedScaleScale", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Scale", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Scale" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.Scale", "method": "PUT", "summary": "replace scale of the specified Scale", "nickname": "replaceNamespacedScaleScale", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1beta1.Scale", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Scale", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Scale" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.Scale", "method": "PATCH", "summary": "partially update scale of the specified Scale", "nickname": "patchNamespacedScaleScale", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Scale", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Scale" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] } ] }, { "path": "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.Deployment", "method": "PUT", "summary": "replace status of the specified Deployment", "nickname": "replaceNamespacedDeploymentStatus", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1beta1.Deployment", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Deployment", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Deployment" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.HorizontalPodAutoscalerList", "method": "GET", "summary": "list or watch objects of kind HorizontalPodAutoscaler", "nickname": "listNamespacedHorizontalPodAutoscaler", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.HorizontalPodAutoscalerList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.HorizontalPodAutoscaler", "method": "POST", "summary": "create a HorizontalPodAutoscaler", "nickname": "createNamespacedHorizontalPodAutoscaler", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1beta1.HorizontalPodAutoscaler", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.HorizontalPodAutoscaler" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete collection of HorizontalPodAutoscaler", "nickname": "deletecollectionNamespacedHorizontalPodAutoscaler", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of HorizontalPodAutoscaler", "nickname": "watchNamespacedHorizontalPodAutoscalerList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.HorizontalPodAutoscaler", "method": "GET", "summary": "read the specified HorizontalPodAutoscaler", "nickname": "readNamespacedHorizontalPodAutoscaler", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "export", "description": "Should this value be exported. Export strips fields that a user can not specify.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "exact", "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the HorizontalPodAutoscaler", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.HorizontalPodAutoscaler" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.HorizontalPodAutoscaler", "method": "PUT", "summary": "replace the specified HorizontalPodAutoscaler", "nickname": "replaceNamespacedHorizontalPodAutoscaler", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1beta1.HorizontalPodAutoscaler", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the HorizontalPodAutoscaler", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.HorizontalPodAutoscaler" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.HorizontalPodAutoscaler", "method": "PATCH", "summary": "partially update the specified HorizontalPodAutoscaler", "nickname": "patchNamespacedHorizontalPodAutoscaler", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the HorizontalPodAutoscaler", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.HorizontalPodAutoscaler" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete a HorizontalPodAutoscaler", "nickname": "deleteNamespacedHorizontalPodAutoscaler", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.DeleteOptions", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the HorizontalPodAutoscaler", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch changes to an object of kind HorizontalPodAutoscaler", "nickname": "watchNamespacedHorizontalPodAutoscaler", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the HorizontalPodAutoscaler", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/horizontalpodautoscalers", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.HorizontalPodAutoscalerList", "method": "GET", "summary": "list or watch objects of kind HorizontalPodAutoscaler", "nickname": "listHorizontalPodAutoscaler", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.HorizontalPodAutoscalerList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/watch/horizontalpodautoscalers", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of HorizontalPodAutoscaler", "nickname": "watchHorizontalPodAutoscalerList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.HorizontalPodAutoscaler", "method": "PUT", "summary": "replace status of the specified HorizontalPodAutoscaler", "nickname": "replaceNamespacedHorizontalPodAutoscalerStatus", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1beta1.HorizontalPodAutoscaler", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the HorizontalPodAutoscaler", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.HorizontalPodAutoscaler" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.IngressList", "method": "GET", "summary": "list or watch objects of kind Ingress", "nickname": "listNamespacedIngress", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.IngressList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.Ingress", "method": "POST", "summary": "create a Ingress", "nickname": "createNamespacedIngress", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1beta1.Ingress", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Ingress" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete collection of Ingress", "nickname": "deletecollectionNamespacedIngress", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of Ingress", "nickname": "watchNamespacedIngressList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.Ingress", "method": "GET", "summary": "read the specified Ingress", "nickname": "readNamespacedIngress", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "export", "description": "Should this value be exported. Export strips fields that a user can not specify.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "exact", "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Ingress", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Ingress" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.Ingress", "method": "PUT", "summary": "replace the specified Ingress", "nickname": "replaceNamespacedIngress", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1beta1.Ingress", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Ingress", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Ingress" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.Ingress", "method": "PATCH", "summary": "partially update the specified Ingress", "nickname": "patchNamespacedIngress", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Ingress", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Ingress" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete a Ingress", "nickname": "deleteNamespacedIngress", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.DeleteOptions", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Ingress", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses/{name}", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch changes to an object of kind Ingress", "nickname": "watchNamespacedIngress", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Ingress", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/ingresses", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.IngressList", "method": "GET", "summary": "list or watch objects of kind Ingress", "nickname": "listIngress", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.IngressList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/watch/ingresses", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of Ingress", "nickname": "watchIngressList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.Ingress", "method": "PUT", "summary": "replace status of the specified Ingress", "nickname": "replaceNamespacedIngressStatus", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1beta1.Ingress", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Ingress", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Ingress" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/namespaces/{namespace}/jobs", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.JobList", "method": "GET", "summary": "list or watch objects of kind Job", "nickname": "listNamespacedJob", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.JobList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.Job", "method": "POST", "summary": "create a Job", "nickname": "createNamespacedJob", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1beta1.Job", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Job" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete collection of Job", "nickname": "deletecollectionNamespacedJob", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of Job", "nickname": "watchNamespacedJobList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.Job", "method": "GET", "summary": "read the specified Job", "nickname": "readNamespacedJob", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "export", "description": "Should this value be exported. Export strips fields that a user can not specify.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "exact", "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Job", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Job" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.Job", "method": "PUT", "summary": "replace the specified Job", "nickname": "replaceNamespacedJob", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1beta1.Job", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Job", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Job" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.Job", "method": "PATCH", "summary": "partially update the specified Job", "nickname": "patchNamespacedJob", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Job", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Job" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete a Job", "nickname": "deleteNamespacedJob", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.DeleteOptions", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Job", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs/{name}", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch changes to an object of kind Job", "nickname": "watchNamespacedJob", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Job", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/jobs", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.JobList", "method": "GET", "summary": "list or watch objects of kind Job", "nickname": "listJob", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.JobList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/watch/jobs", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of Job", "nickname": "watchJobList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.Job", "method": "PUT", "summary": "replace status of the specified Job", "nickname": "replaceNamespacedJobStatus", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1beta1.Job", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Job", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Job" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.ReplicaSetList", "method": "GET", "summary": "list or watch objects of kind ReplicaSet", "nickname": "listNamespacedReplicaSet", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.ReplicaSetList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.ReplicaSet", "method": "POST", "summary": "create a ReplicaSet", "nickname": "createNamespacedReplicaSet", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1beta1.ReplicaSet", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.ReplicaSet" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete collection of ReplicaSet", "nickname": "deletecollectionNamespacedReplicaSet", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of ReplicaSet", "nickname": "watchNamespacedReplicaSetList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.ReplicaSet", "method": "GET", "summary": "read the specified ReplicaSet", "nickname": "readNamespacedReplicaSet", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "export", "description": "Should this value be exported. Export strips fields that a user can not specify.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "exact", "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ReplicaSet", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.ReplicaSet" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.ReplicaSet", "method": "PUT", "summary": "replace the specified ReplicaSet", "nickname": "replaceNamespacedReplicaSet", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1beta1.ReplicaSet", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ReplicaSet", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.ReplicaSet" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.ReplicaSet", "method": "PATCH", "summary": "partially update the specified ReplicaSet", "nickname": "patchNamespacedReplicaSet", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ReplicaSet", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.ReplicaSet" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] }, { "type": "unversioned.Status", "method": "DELETE", "summary": "delete a ReplicaSet", "nickname": "deleteNamespacedReplicaSet", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1.DeleteOptions", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ReplicaSet", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "unversioned.Status" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets/{name}", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch changes to an object of kind ReplicaSet", "nickname": "watchNamespacedReplicaSet", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ReplicaSet", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/replicasets", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.ReplicaSetList", "method": "GET", "summary": "list or watch objects of kind ReplicaSet", "nickname": "listReplicaSet", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.ReplicaSetList" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/watch/replicasets", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "json.WatchEvent", "method": "GET", "summary": "watch individual changes to a list of ReplicaSet", "nickname": "watchReplicaSetList", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "labelSelector", "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "fieldSelector", "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "required": false, "allowMultiple": false }, { "type": "boolean", "paramType": "query", "name": "watch", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "query", "name": "resourceVersion", "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", "required": false, "allowMultiple": false }, { "type": "integer", "paramType": "query", "name": "timeoutSeconds", "description": "Timeout for the list/watch call.", "required": false, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "json.WatchEvent" } ], "produces": [ "application/json" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.Scale", "method": "GET", "summary": "read scale of the specified Scale", "nickname": "readNamespacedScaleScale", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Scale", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Scale" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.Scale", "method": "PUT", "summary": "replace scale of the specified Scale", "nickname": "replaceNamespacedScaleScale", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1beta1.Scale", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Scale", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Scale" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.Scale", "method": "PATCH", "summary": "partially update scale of the specified Scale", "nickname": "patchNamespacedScaleScale", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Scale", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Scale" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] } ] }, { "path": "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.ReplicaSet", "method": "PUT", "summary": "replace status of the specified ReplicaSet", "nickname": "replaceNamespacedReplicaSetStatus", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1beta1.ReplicaSet", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the ReplicaSet", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.ReplicaSet" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] } ] }, { "path": "/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "v1beta1.Scale", "method": "GET", "summary": "read scale of the specified Scale", "nickname": "readNamespacedScaleScale", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Scale", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Scale" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.Scale", "method": "PUT", "summary": "replace scale of the specified Scale", "nickname": "replaceNamespacedScaleScale", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "v1beta1.Scale", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Scale", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Scale" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "*/*" ] }, { "type": "v1beta1.Scale", "method": "PATCH", "summary": "partially update scale of the specified Scale", "nickname": "patchNamespacedScaleScale", "parameters": [ { "type": "string", "paramType": "query", "name": "pretty", "description": "If 'true', then the output is pretty printed.", "required": false, "allowMultiple": false }, { "type": "unversioned.Patch", "paramType": "body", "name": "body", "description": "", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false }, { "type": "string", "paramType": "path", "name": "name", "description": "name of the Scale", "required": true, "allowMultiple": false } ], "responseMessages": [ { "code": 200, "message": "OK", "responseModel": "v1beta1.Scale" } ], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" ] } ] }, { "path": "/apis/extensions/v1beta1", "description": "API at /apis/extensions/v1beta1", "operations": [ { "type": "void", "method": "GET", "summary": "get available resources", "nickname": "getAPIResources", "parameters": [], "produces": [ "application/json", "application/yaml" ], "consumes": [ "application/json", "application/yaml" ] } ] } ], "models": { "v1beta1.DaemonSetList": { "id": "v1beta1.DaemonSetList", "description": "DaemonSetList is a collection of daemon sets.", "required": [ "items" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "items": { "type": "array", "items": { "$ref": "v1beta1.DaemonSet" }, "description": "Items is a list of daemon sets." } } }, "unversioned.ListMeta": { "id": "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": { "selfLink": { "type": "string", "description": "SelfLink is a URL representing this object. Populated by the system. Read-only." }, "resourceVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency" } } }, "v1beta1.DaemonSet": { "id": "v1beta1.DaemonSet", "description": "DaemonSet represents the configuration of a daemon set.", "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1beta1.DaemonSetSpec", "description": "Spec defines the desired behavior of this daemon set. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" }, "status": { "$ref": "v1beta1.DaemonSetStatus", "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/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1.ObjectMeta": { "id": "v1.ObjectMeta", "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", "properties": { "name": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" }, "generateName": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#idempotency" }, "namespace": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md" }, "selfLink": { "type": "string", "description": "SelfLink is a URL representing this object. Populated by the system. Read-only." }, "uid": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#uids" }, "resourceVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency" }, "generation": { "type": "integer", "format": "int64", "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only." }, "creationTimestamp": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#metadata" }, "deletionTimestamp": { "type": "string", "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 will be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. Once the resource is deleted in the API, the Kubelet will send a hard termination signal to the container. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "deletionGracePeriodSeconds": { "type": "integer", "format": "int64", "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." }, "labels": { "type": "object", "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://releases.k8s.io/release-1.2/docs/user-guide/labels.md" }, "annotations": { "type": "object", "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://releases.k8s.io/release-1.2/docs/user-guide/annotations.md" } } }, "v1beta1.DaemonSetSpec": { "id": "v1beta1.DaemonSetSpec", "description": "DaemonSetSpec is the specification of a daemon set.", "required": [ "template" ], "properties": { "selector": { "$ref": "v1beta1.LabelSelector", "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://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors" }, "template": { "$ref": "v1.PodTemplateSpec", "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://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#pod-template" } } }, "v1beta1.LabelSelector": { "id": "v1beta1.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": { "matchLabels": { "type": "object", "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." }, "matchExpressions": { "type": "array", "items": { "$ref": "v1beta1.LabelSelectorRequirement" }, "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed." } } }, "v1beta1.LabelSelectorRequirement": { "id": "v1beta1.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": { "type": "string", "description": "key is the label key that the selector applies to." }, "operator": { "type": "string", "description": "operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist." }, "values": { "type": "array", "items": { "type": "string" }, "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." } } }, "v1.PodTemplateSpec": { "id": "v1.PodTemplateSpec", "description": "PodTemplateSpec describes the data a pod should have when created from a template", "properties": { "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1.PodSpec", "description": "Specification of the desired behavior of the pod. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1.PodSpec": { "id": "v1.PodSpec", "description": "PodSpec is a description of a pod.", "required": [ "containers" ], "properties": { "volumes": { "type": "array", "items": { "$ref": "v1.Volume" }, "description": "List of volumes that can be mounted by containers belonging to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md" }, "containers": { "type": "array", "items": { "$ref": "v1.Container" }, "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://releases.k8s.io/release-1.2/docs/user-guide/containers.md" }, "restartPolicy": { "type": "string", "description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#restartpolicy" }, "terminationGracePeriodSeconds": { "type": "integer", "format": "int64", "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." }, "activeDeadlineSeconds": { "type": "integer", "format": "int64", "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." }, "dnsPolicy": { "type": "string", "description": "Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\"." }, "nodeSelector": { "type": "object", "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://releases.k8s.io/release-1.2/docs/user-guide/node-selection/README.md" }, "serviceAccountName": { "type": "string", "description": "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/release-1.2/docs/design/service_accounts.md" }, "serviceAccount": { "type": "string", "description": "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead." }, "nodeName": { "type": "string", "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." }, "hostNetwork": { "type": "boolean", "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." }, "hostPID": { "type": "boolean", "description": "Use the host's pid namespace. Optional: Default to false." }, "hostIPC": { "type": "boolean", "description": "Use the host's ipc namespace. Optional: Default to false." }, "securityContext": { "$ref": "v1.PodSecurityContext", "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." }, "imagePullSecrets": { "type": "array", "items": { "$ref": "v1.LocalObjectReference" }, "description": "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling object of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md#specifying-imagepullsecrets-on-a-pod" } } }, "v1.Volume": { "id": "v1.Volume", "description": "Volume represents a named volume in a pod that may be accessed by object container in the pod.", "required": [ "name" ], "properties": { "name": { "type": "string", "description": "Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" }, "hostPath": { "$ref": "v1.HostPathVolumeSource", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath" }, "emptyDir": { "$ref": "v1.EmptyDirVolumeSource", "description": "EmptyDir represents a temporary directory that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir" }, "gcePersistentDisk": { "$ref": "v1.GCEPersistentDiskVolumeSource", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk" }, "awsElasticBlockStore": { "$ref": "v1.AWSElasticBlockStoreVolumeSource", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore" }, "gitRepo": { "$ref": "v1.GitRepoVolumeSource", "description": "GitRepo represents a git repository at a particular revision." }, "secret": { "$ref": "v1.SecretVolumeSource", "description": "Secret represents a secret that should populate this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets" }, "nfs": { "$ref": "v1.NFSVolumeSource", "description": "NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs" }, "iscsi": { "$ref": "v1.ISCSIVolumeSource", "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/release-1.2/examples/iscsi/README.md" }, "glusterfs": { "$ref": "v1.GlusterfsVolumeSource", "description": "Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md" }, "persistentVolumeClaim": { "$ref": "v1.PersistentVolumeClaimVolumeSource", "description": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims" }, "rbd": { "$ref": "v1.RBDVolumeSource", "description": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md" }, "flexVolume": { "$ref": "v1.FlexVolumeSource", "description": "FlexVolume represents a generic volume resource that is provisioned/attached using a exec based plugin. This is an alpha feature and may change in future." }, "cinder": { "$ref": "v1.CinderVolumeSource", "description": "Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md" }, "cephfs": { "$ref": "v1.CephFSVolumeSource", "description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime" }, "flocker": { "$ref": "v1.FlockerVolumeSource", "description": "Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running" }, "downwardAPI": { "$ref": "v1.DownwardAPIVolumeSource", "description": "DownwardAPI represents downward API about the pod that should populate this volume" }, "fc": { "$ref": "v1.FCVolumeSource", "description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod." }, "azureFile": { "$ref": "v1.AzureFileVolumeSource", "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod." }, "configMap": { "$ref": "v1.ConfigMapVolumeSource", "description": "ConfigMap represents a configMap that should populate this volume" } } }, "v1.HostPathVolumeSource": { "id": "v1.HostPathVolumeSource", "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", "required": [ "path" ], "properties": { "path": { "type": "string", "description": "Path of the directory on the host. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath" } } }, "v1.EmptyDirVolumeSource": { "id": "v1.EmptyDirVolumeSource", "description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", "properties": { "medium": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir" } } }, "v1.GCEPersistentDiskVolumeSource": { "id": "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 mobject times. GCE PDs support ownership management and SELinux relabeling.", "required": [ "pdName" ], "properties": { "pdName": { "type": "string", "description": "Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk" }, "fsType": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk" }, "partition": { "type": "integer", "format": "int32", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk" }, "readOnly": { "type": "boolean", "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk" } } }, "v1.AWSElasticBlockStoreVolumeSource": { "id": "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": { "volumeID": { "type": "string", "description": "Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore" }, "fsType": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore" }, "partition": { "type": "integer", "format": "int32", "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)." }, "readOnly": { "type": "boolean", "description": "Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore" } } }, "v1.GitRepoVolumeSource": { "id": "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": { "repository": { "type": "string", "description": "Repository URL" }, "revision": { "type": "string", "description": "Commit hash for the specified revision." }, "directory": { "type": "string", "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." } } }, "v1.SecretVolumeSource": { "id": "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": { "secretName": { "type": "string", "description": "Name of the secret in the pod's namespace to use. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets" } } }, "v1.NFSVolumeSource": { "id": "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": { "server": { "type": "string", "description": "Server is the hostname or IP address of the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs" }, "path": { "type": "string", "description": "Path that is exported by the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs" }, "readOnly": { "type": "boolean", "description": "ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs" } } }, "v1.ISCSIVolumeSource": { "id": "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" ], "properties": { "targetPortal": { "type": "string", "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)." }, "iqn": { "type": "string", "description": "Target iSCSI Qualified Name." }, "lun": { "type": "integer", "format": "int32", "description": "iSCSI target lun number." }, "iscsiInterface": { "type": "string", "description": "Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport." }, "fsType": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#iscsi" }, "readOnly": { "type": "boolean", "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false." } } }, "v1.GlusterfsVolumeSource": { "id": "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": { "type": "string", "description": "EndpointsName is the endpoint name that details Glusterfs topology. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod" }, "path": { "type": "string", "description": "Path is the Glusterfs volume path. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod" }, "readOnly": { "type": "boolean", "description": "ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod" } } }, "v1.PersistentVolumeClaimVolumeSource": { "id": "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": { "type": "string", "description": "ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims" }, "readOnly": { "type": "boolean", "description": "Will force the ReadOnly setting in VolumeMounts. Default false." } } }, "v1.RBDVolumeSource": { "id": "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", "pool", "user", "keyring", "secretRef" ], "properties": { "monitors": { "type": "array", "items": { "type": "string" }, "description": "A collection of Ceph monitors. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" }, "image": { "type": "string", "description": "The rados image name. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" }, "fsType": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#rbd" }, "pool": { "type": "string", "description": "The rados pool name. Default is rbd. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it." }, "user": { "type": "string", "description": "The rados user name. Default is admin. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" }, "keyring": { "type": "string", "description": "Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" }, "secretRef": { "$ref": "v1.LocalObjectReference", "description": "SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is empty. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" }, "readOnly": { "type": "boolean", "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it" } } }, "v1.LocalObjectReference": { "id": "v1.LocalObjectReference", "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", "properties": { "name": { "type": "string", "description": "Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" } } }, "v1.FlexVolumeSource": { "id": "v1.FlexVolumeSource", "description": "FlexVolume represents a generic volume resource that is provisioned/attached using a exec based plugin. This is an alpha feature and may change in future.", "required": [ "driver" ], "properties": { "driver": { "type": "string", "description": "Driver is the name of the driver to use for this volume." }, "fsType": { "type": "string", "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." }, "secretRef": { "$ref": "v1.LocalObjectReference", "description": "Optional: SecretRef is reference to the authentication secret for User, default is empty." }, "readOnly": { "type": "boolean", "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts." }, "options": { "type": "object", "description": "Optional: Extra command options if object." } } }, "v1.CinderVolumeSource": { "id": "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": { "volumeID": { "type": "string", "description": "volume id used to identify the volume in cinder More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md" }, "fsType": { "type": "string", "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/release-1.2/examples/mysql-cinder-pd/README.md" }, "readOnly": { "type": "boolean", "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md" } } }, "v1.CephFSVolumeSource": { "id": "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": { "type": "array", "items": { "type": "string" }, "description": "Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it" }, "path": { "type": "string", "description": "Optional: Used as the mounted root, rather than the full Ceph tree, default is /" }, "user": { "type": "string", "description": "Optional: User is the rados user name, default is admin More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it" }, "secretFile": { "type": "string", "description": "Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it" }, "secretRef": { "$ref": "v1.LocalObjectReference", "description": "Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it" }, "readOnly": { "type": "boolean", "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it" } } }, "v1.FlockerVolumeSource": { "id": "v1.FlockerVolumeSource", "description": "Represents a Flocker volume mounted by the Flocker agent. Flocker volumes do not support ownership management or SELinux relabeling.", "required": [ "datasetName" ], "properties": { "datasetName": { "type": "string", "description": "Required: the volume name. This is going to be store on metadata -\u003e name on the payload for Flocker" } } }, "v1.DownwardAPIVolumeSource": { "id": "v1.DownwardAPIVolumeSource", "description": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", "properties": { "items": { "type": "array", "items": { "$ref": "v1.DownwardAPIVolumeFile" }, "description": "Items is a list of downward API volume file" } } }, "v1.DownwardAPIVolumeFile": { "id": "v1.DownwardAPIVolumeFile", "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", "required": [ "path", "fieldRef" ], "properties": { "path": { "type": "string", "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 '..'" }, "fieldRef": { "$ref": "v1.ObjectFieldSelector", "description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported." } } }, "v1.ObjectFieldSelector": { "id": "v1.ObjectFieldSelector", "description": "ObjectFieldSelector selects an APIVersioned field of an object.", "required": [ "fieldPath" ], "properties": { "apiVersion": { "type": "string", "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\"." }, "fieldPath": { "type": "string", "description": "Path of the field to select in the specified API version." } } }, "v1.FCVolumeSource": { "id": "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": { "targetWWNs": { "type": "array", "items": { "type": "string" }, "description": "Required: FC target world wide names (WWNs)" }, "lun": { "type": "integer", "format": "int32", "description": "Required: FC target lun number" }, "fsType": { "type": "string", "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." }, "readOnly": { "type": "boolean", "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts." } } }, "v1.AzureFileVolumeSource": { "id": "v1.AzureFileVolumeSource", "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", "required": [ "secretName", "shareName" ], "properties": { "secretName": { "type": "string", "description": "the name of secret that contains Azure Storage Account Name and Key" }, "shareName": { "type": "string", "description": "Share Name" }, "readOnly": { "type": "boolean", "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts." } } }, "v1.ConfigMapVolumeSource": { "id": "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": { "name": { "type": "string", "description": "Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" }, "items": { "type": "array", "items": { "$ref": "v1.KeyToPath" }, "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 '..'." } } }, "v1.KeyToPath": { "id": "v1.KeyToPath", "description": "Maps a string key to a path within a volume.", "required": [ "key", "path" ], "properties": { "key": { "type": "string", "description": "The key to project." }, "path": { "type": "string", "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 '..'." } } }, "v1.Container": { "id": "v1.Container", "description": "A single application container that you want to run within a pod.", "required": [ "name" ], "properties": { "name": { "type": "string", "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." }, "image": { "type": "string", "description": "Docker image name. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md" }, "command": { "type": "array", "items": { "type": "string" }, "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://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands" }, "args": { "type": "array", "items": { "type": "string" }, "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://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands" }, "workingDir": { "type": "string", "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." }, "ports": { "type": "array", "items": { "$ref": "v1.ContainerPort" }, "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." }, "env": { "type": "array", "items": { "$ref": "v1.EnvVar" }, "description": "List of environment variables to set in the container. Cannot be updated." }, "resources": { "$ref": "v1.ResourceRequirements", "description": "Compute Resources required by this container. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#resources" }, "volumeMounts": { "type": "array", "items": { "$ref": "v1.VolumeMount" }, "description": "Pod volumes to mount into the container's filesyste. Cannot be updated." }, "livenessProbe": { "$ref": "v1.Probe", "description": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes" }, "readinessProbe": { "$ref": "v1.Probe", "description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes" }, "lifecycle": { "$ref": "v1.Lifecycle", "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated." }, "terminationMessagePath": { "type": "string", "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." }, "imagePullPolicy": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/images.md#updating-images" }, "securityContext": { "$ref": "v1.SecurityContext", "description": "Security options the pod should run with. More info: http://releases.k8s.io/release-1.2/docs/design/security_context.md" }, "stdin": { "type": "boolean", "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." }, "stdinOnce": { "type": "boolean", "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" }, "tty": { "type": "boolean", "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false." } } }, "v1.ContainerPort": { "id": "v1.ContainerPort", "description": "ContainerPort represents a network port in a single container.", "required": [ "containerPort" ], "properties": { "name": { "type": "string", "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." }, "hostPort": { "type": "integer", "format": "int32", "description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 \u003c x \u003c 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this." }, "containerPort": { "type": "integer", "format": "int32", "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 \u003c x \u003c 65536." }, "protocol": { "type": "string", "description": "Protocol for port. Must be UDP or TCP. Defaults to \"TCP\"." }, "hostIP": { "type": "string", "description": "What host IP to bind the external port to." } } }, "v1.EnvVar": { "id": "v1.EnvVar", "description": "EnvVar represents an environment variable present in a Container.", "required": [ "name" ], "properties": { "name": { "type": "string", "description": "Name of the environment variable. Must be a C_IDENTIFIER." }, "value": { "type": "string", "description": "Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and object 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 \"\"." }, "valueFrom": { "$ref": "v1.EnvVarSource", "description": "Source for the environment variable's value. Cannot be used if value is not empty." } } }, "v1.EnvVarSource": { "id": "v1.EnvVarSource", "description": "EnvVarSource represents a source for the value of an EnvVar.", "properties": { "fieldRef": { "$ref": "v1.ObjectFieldSelector", "description": "Selects a field of the pod; only name and namespace are supported." }, "configMapKeyRef": { "$ref": "v1.ConfigMapKeySelector", "description": "Selects a key of a ConfigMap." }, "secretKeyRef": { "$ref": "v1.SecretKeySelector", "description": "Selects a key of a secret in the pod's namespace" } } }, "v1.ConfigMapKeySelector": { "id": "v1.ConfigMapKeySelector", "description": "Selects a key from a ConfigMap.", "required": [ "key" ], "properties": { "name": { "type": "string", "description": "Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" }, "key": { "type": "string", "description": "The key to select." } } }, "v1.SecretKeySelector": { "id": "v1.SecretKeySelector", "description": "SecretKeySelector selects a key of a Secret.", "required": [ "key" ], "properties": { "name": { "type": "string", "description": "Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" }, "key": { "type": "string", "description": "The key of the secret to select from. Must be a valid secret key." } } }, "v1.ResourceRequirements": { "id": "v1.ResourceRequirements", "description": "ResourceRequirements describes the compute resource requirements.", "properties": { "limits": { "type": "object", "description": "Limits describes the maximum amount of compute resources allowed. More info: http://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications" }, "requests": { "type": "object", "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://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications" } } }, "v1.VolumeMount": { "id": "v1.VolumeMount", "description": "VolumeMount describes a mounting of a Volume within a container.", "required": [ "name", "mountPath" ], "properties": { "name": { "type": "string", "description": "This must match the Name of a Volume." }, "readOnly": { "type": "boolean", "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." }, "mountPath": { "type": "string", "description": "Path within the container at which the volume should be mounted. Must not contain ':'." } } }, "v1.Probe": { "id": "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": { "$ref": "v1.ExecAction", "description": "One and only one of the following should be specified. Exec specifies the action to take." }, "httpGet": { "$ref": "v1.HTTPGetAction", "description": "HTTPGet specifies the http request to perform." }, "tcpSocket": { "$ref": "v1.TCPSocketAction", "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported" }, "initialDelaySeconds": { "type": "integer", "format": "int32", "description": "Number of seconds after the container has started before liveness probes are initiated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes" }, "timeoutSeconds": { "type": "integer", "format": "int32", "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes" }, "periodSeconds": { "type": "integer", "format": "int32", "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1." }, "successThreshold": { "type": "integer", "format": "int32", "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." }, "failureThreshold": { "type": "integer", "format": "int32", "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1." } } }, "v1.ExecAction": { "id": "v1.ExecAction", "description": "ExecAction describes a \"run in container\" action.", "properties": { "command": { "type": "array", "items": { "type": "string" }, "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." } } }, "v1.HTTPGetAction": { "id": "v1.HTTPGetAction", "description": "HTTPGetAction describes an action based on HTTP Get requests.", "required": [ "port" ], "properties": { "path": { "type": "string", "description": "Path to access on the HTTP server." }, "port": { "type": "string", "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." }, "host": { "type": "string", "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead." }, "scheme": { "type": "string", "description": "Scheme to use for connecting to the host. Defaults to HTTP." }, "httpHeaders": { "type": "array", "items": { "$ref": "v1.HTTPHeader" }, "description": "Custom headers to set in the request. HTTP allows repeated headers." } } }, "v1.HTTPHeader": { "id": "v1.HTTPHeader", "description": "HTTPHeader describes a custom header to be used in HTTP probes", "required": [ "name", "value" ], "properties": { "name": { "type": "string", "description": "The header field name" }, "value": { "type": "string", "description": "The header field value" } } }, "v1.TCPSocketAction": { "id": "v1.TCPSocketAction", "description": "TCPSocketAction describes an action based on opening a socket", "required": [ "port" ], "properties": { "port": { "type": "string", "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." } } }, "v1.Lifecycle": { "id": "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": { "$ref": "v1.Handler", "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://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details" }, "preStop": { "$ref": "v1.Handler", "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://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details" } } }, "v1.Handler": { "id": "v1.Handler", "description": "Handler defines a specific action that should be taken", "properties": { "exec": { "$ref": "v1.ExecAction", "description": "One and only one of the following should be specified. Exec specifies the action to take." }, "httpGet": { "$ref": "v1.HTTPGetAction", "description": "HTTPGet specifies the http request to perform." }, "tcpSocket": { "$ref": "v1.TCPSocketAction", "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported" } } }, "v1.SecurityContext": { "id": "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": { "capabilities": { "$ref": "v1.Capabilities", "description": "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime." }, "privileged": { "type": "boolean", "description": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false." }, "seLinuxOptions": { "$ref": "v1.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." }, "runAsUser": { "type": "integer", "format": "int64", "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." }, "runAsNonRoot": { "type": "boolean", "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." }, "readOnlyRootFilesystem": { "type": "boolean", "description": "Whether this container has a read-only root filesystem. Default is false." } } }, "v1.Capabilities": { "id": "v1.Capabilities", "description": "Adds and removes POSIX capabilities from running containers.", "properties": { "add": { "type": "array", "items": { "$ref": "v1.Capability" }, "description": "Added capabilities" }, "drop": { "type": "array", "items": { "$ref": "v1.Capability" }, "description": "Removed capabilities" } } }, "v1.Capability": { "id": "v1.Capability", "properties": {} }, "v1.SELinuxOptions": { "id": "v1.SELinuxOptions", "description": "SELinuxOptions are the labels to be applied to the container", "properties": { "user": { "type": "string", "description": "User is a SELinux user label that applies to the container." }, "role": { "type": "string", "description": "Role is a SELinux role label that applies to the container." }, "type": { "type": "string", "description": "Type is a SELinux type label that applies to the container." }, "level": { "type": "string", "description": "Level is SELinux level label that applies to the container." } } }, "v1.PodSecurityContext": { "id": "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": { "seLinuxOptions": { "$ref": "v1.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." }, "runAsUser": { "type": "integer", "format": "int64", "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." }, "runAsNonRoot": { "type": "boolean", "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." }, "supplementalGroups": { "type": "array", "items": { "$ref": "integer" }, "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 object container." }, "fsGroup": { "type": "integer", "format": "int64", "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 " } } }, "integer": { "id": "integer", "properties": {} }, "v1beta1.DaemonSetStatus": { "id": "v1beta1.DaemonSetStatus", "description": "DaemonSetStatus represents the current status of a daemon set.", "required": [ "currentNumberScheduled", "numberMisscheduled", "desiredNumberScheduled" ], "properties": { "currentNumberScheduled": { "type": "integer", "format": "int32", "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/release-1.2/docs/admin/daemons.md" }, "numberMisscheduled": { "type": "integer", "format": "int32", "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/release-1.2/docs/admin/daemons.md" }, "desiredNumberScheduled": { "type": "integer", "format": "int32", "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/release-1.2/docs/admin/daemons.md" } } }, "unversioned.Status": { "id": "unversioned.Status", "description": "Status is a return value for calls that don't return other objects.", "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "status": { "type": "string", "description": "Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" }, "message": { "type": "string", "description": "A human-readable description of the status of this operation." }, "reason": { "type": "string", "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." }, "details": { "$ref": "unversioned.StatusDetails", "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 object schema except that defined by the reason type." }, "code": { "type": "integer", "format": "int32", "description": "Suggested HTTP return code for this status, 0 if not set." } } }, "unversioned.StatusDetails": { "id": "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 object attribute may be empty, invalid, or under defined.", "properties": { "name": { "type": "string", "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described)." }, "group": { "type": "string", "description": "The group attribute of the resource associated with the status StatusReason." }, "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "causes": { "type": "array", "items": { "$ref": "unversioned.StatusCause" }, "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes." }, "retryAfterSeconds": { "type": "integer", "format": "int32", "description": "If specified, the time in seconds before the operation should be retried." } } }, "unversioned.StatusCause": { "id": "unversioned.StatusCause", "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", "properties": { "reason": { "type": "string", "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available." }, "message": { "type": "string", "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader." }, "field": { "type": "string", "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\"" } } }, "json.WatchEvent": { "id": "json.WatchEvent", "properties": { "type": { "type": "string", "description": "the type of watch event; may be ADDED, MODIFIED, DELETED, or ERROR" }, "object": { "type": "string", "description": "the object being watched; will match the type of the resource endpoint or be a Status object if the type is ERROR" } } }, "unversioned.Patch": { "id": "unversioned.Patch", "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", "properties": {} }, "v1.DeleteOptions": { "id": "v1.DeleteOptions", "description": "DeleteOptions may be provided when deleting an API object", "required": [ "gracePeriodSeconds" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "gracePeriodSeconds": { "type": "integer", "format": "int64", "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." } } }, "v1beta1.DeploymentList": { "id": "v1beta1.DeploymentList", "description": "DeploymentList is a list of Deployments.", "required": [ "items" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata." }, "items": { "type": "array", "items": { "$ref": "v1beta1.Deployment" }, "description": "Items is the list of Deployments." } } }, "v1beta1.Deployment": { "id": "v1beta1.Deployment", "description": "Deployment enables declarative updates for Pods and ReplicaSets.", "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object metadata." }, "spec": { "$ref": "v1beta1.DeploymentSpec", "description": "Specification of the desired behavior of the Deployment." }, "status": { "$ref": "v1beta1.DeploymentStatus", "description": "Most recently observed status of the Deployment." } } }, "v1beta1.DeploymentSpec": { "id": "v1beta1.DeploymentSpec", "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", "required": [ "template" ], "properties": { "replicas": { "type": "integer", "format": "int32", "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1." }, "selector": { "$ref": "v1beta1.LabelSelector", "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment." }, "template": { "$ref": "v1.PodTemplateSpec", "description": "Template describes the pods that will be created." }, "strategy": { "$ref": "v1beta1.DeploymentStrategy", "description": "The deployment strategy to use to replace existing pods with new ones." }, "minReadySeconds": { "type": "integer", "format": "int32", "description": "Minimum number of seconds for which a newly created pod should be ready without object of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)" }, "revisionHistoryLimit": { "type": "integer", "format": "int32", "description": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified." }, "paused": { "type": "boolean", "description": "Indicates that the deployment is paused and will not be processed by the deployment controller." }, "rollbackTo": { "$ref": "v1beta1.RollbackConfig", "description": "The config this deployment is rolling back to. Will be cleared after rollback is done." } } }, "v1beta1.DeploymentStrategy": { "id": "v1beta1.DeploymentStrategy", "description": "DeploymentStrategy describes how to replace existing pods with new ones.", "properties": { "type": { "type": "string", "description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate." }, "rollingUpdate": { "$ref": "v1beta1.RollingUpdateDeployment", "description": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate." } } }, "v1beta1.RollingUpdateDeployment": { "id": "v1beta1.RollingUpdateDeployment", "description": "Spec to control the desired behavior of rolling update.", "properties": { "maxUnavailable": { "type": "string", "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." }, "maxSurge": { "type": "string", "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 object time during the update is atmost 130% of desired pods." } } }, "v1beta1.RollbackConfig": { "id": "v1beta1.RollbackConfig", "properties": { "revision": { "type": "integer", "format": "int64", "description": "The revision to rollback to. If set to 0, rollbck to the last revision." } } }, "v1beta1.DeploymentStatus": { "id": "v1beta1.DeploymentStatus", "description": "DeploymentStatus is the most recently observed status of the Deployment.", "properties": { "observedGeneration": { "type": "integer", "format": "int64", "description": "The generation observed by the deployment controller." }, "replicas": { "type": "integer", "format": "int32", "description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector)." }, "updatedReplicas": { "type": "integer", "format": "int32", "description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec." }, "availableReplicas": { "type": "integer", "format": "int32", "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment." }, "unavailableReplicas": { "type": "integer", "format": "int32", "description": "Total number of unavailable pods targeted by this deployment." } } }, "v1beta1.DeploymentRollback": { "id": "v1beta1.DeploymentRollback", "description": "DeploymentRollback stores the information required to rollback a deployment.", "required": [ "name", "rollbackTo" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "name": { "type": "string", "description": "Required: This must match the Name of a deployment." }, "updatedAnnotations": { "type": "object", "description": "The annotations to be updated to a deployment" }, "rollbackTo": { "$ref": "v1beta1.RollbackConfig", "description": "The config of this deployment rollback." } } }, "v1beta1.Scale": { "id": "v1beta1.Scale", "description": "represents a scaling request for a resource.", "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object metadata; More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata." }, "spec": { "$ref": "v1beta1.ScaleSpec", "description": "defines the behavior of the scale. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status." }, "status": { "$ref": "v1beta1.ScaleStatus", "description": "current status of the scale. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status. Read-only." } } }, "v1beta1.ScaleSpec": { "id": "v1beta1.ScaleSpec", "description": "describes the attributes of a scale subresource", "properties": { "replicas": { "type": "integer", "format": "int32", "description": "desired number of instances for the scaled object." } } }, "v1beta1.ScaleStatus": { "id": "v1beta1.ScaleStatus", "description": "represents the current status of a scale subresource.", "required": [ "replicas" ], "properties": { "replicas": { "type": "integer", "format": "int32", "description": "actual number of observed instances of the scaled object." }, "selector": { "type": "object", "description": "label query over pods that should match the replicas count. More info: http://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors" }, "targetSelector": { "type": "string", "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://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors" } } }, "v1beta1.HorizontalPodAutoscalerList": { "id": "v1beta1.HorizontalPodAutoscalerList", "description": "list of horizontal pod autoscaler objects.", "required": [ "items" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata." }, "items": { "type": "array", "items": { "$ref": "v1beta1.HorizontalPodAutoscaler" }, "description": "list of horizontal pod autoscaler objects." } } }, "v1beta1.HorizontalPodAutoscaler": { "id": "v1beta1.HorizontalPodAutoscaler", "description": "configuration of a horizontal pod autoscaler.", "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1beta1.HorizontalPodAutoscalerSpec", "description": "behaviour of autoscaler. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status." }, "status": { "$ref": "v1beta1.HorizontalPodAutoscalerStatus", "description": "current information about the autoscaler." } } }, "v1beta1.HorizontalPodAutoscalerSpec": { "id": "v1beta1.HorizontalPodAutoscalerSpec", "description": "specification of a horizontal pod autoscaler.", "required": [ "scaleRef", "maxReplicas" ], "properties": { "scaleRef": { "$ref": "v1beta1.SubresourceReference", "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." }, "minReplicas": { "type": "integer", "format": "int32", "description": "lower limit for the number of pods that can be set by the autoscaler, default 1." }, "maxReplicas": { "type": "integer", "format": "int32", "description": "upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas." }, "cpuUtilization": { "$ref": "v1beta1.CPUTargetUtilization", "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." } } }, "v1beta1.SubresourceReference": { "id": "v1beta1.SubresourceReference", "description": "SubresourceReference contains enough information to let you inspect or modify the referred subresource.", "properties": { "kind": { "type": "string", "description": "Kind of the referent; More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds\"" }, "name": { "type": "string", "description": "Name of the referent; More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names" }, "apiVersion": { "type": "string", "description": "API version of the referent" }, "subresource": { "type": "string", "description": "Subresource name of the referent" } } }, "v1beta1.CPUTargetUtilization": { "id": "v1beta1.CPUTargetUtilization", "required": [ "targetPercentage" ], "properties": { "targetPercentage": { "type": "integer", "format": "int32", "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." } } }, "v1beta1.HorizontalPodAutoscalerStatus": { "id": "v1beta1.HorizontalPodAutoscalerStatus", "description": "current status of a horizontal pod autoscaler", "required": [ "currentReplicas", "desiredReplicas" ], "properties": { "observedGeneration": { "type": "integer", "format": "int64", "description": "most recent generation observed by this autoscaler." }, "lastScaleTime": { "type": "string", "description": "last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed." }, "currentReplicas": { "type": "integer", "format": "int32", "description": "current number of replicas of pods managed by this autoscaler." }, "desiredReplicas": { "type": "integer", "format": "int32", "description": "desired number of replicas of pods managed by this autoscaler." }, "currentCPUUtilizationPercentage": { "type": "integer", "format": "int32", "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." } } }, "v1beta1.IngressList": { "id": "v1beta1.IngressList", "description": "IngressList is a collection of Ingress.", "required": [ "items" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "items": { "type": "array", "items": { "$ref": "v1beta1.Ingress" }, "description": "Items is the list of Ingress." } } }, "v1beta1.Ingress": { "id": "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": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1beta1.IngressSpec", "description": "Spec is the desired state of the Ingress. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" }, "status": { "$ref": "v1beta1.IngressStatus", "description": "Status is the current state of the Ingress. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1beta1.IngressSpec": { "id": "v1beta1.IngressSpec", "description": "IngressSpec describes the Ingress the user wishes to exist.", "properties": { "backend": { "$ref": "v1beta1.IngressBackend", "description": "A default backend capable of servicing requests that don't match object 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." }, "tls": { "type": "array", "items": { "$ref": "v1beta1.IngressTLS" }, "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." }, "rules": { "type": "array", "items": { "$ref": "v1beta1.IngressRule" }, "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." } } }, "v1beta1.IngressBackend": { "id": "v1beta1.IngressBackend", "description": "IngressBackend describes all endpoints for a given service and port.", "required": [ "serviceName", "servicePort" ], "properties": { "serviceName": { "type": "string", "description": "Specifies the name of the referenced service." }, "servicePort": { "type": "string", "description": "Specifies the port of the referenced service." } } }, "v1beta1.IngressTLS": { "id": "v1beta1.IngressTLS", "description": "IngressTLS describes the transport layer security associated with an Ingress.", "properties": { "hosts": { "type": "array", "items": { "type": "string" }, "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." }, "secretName": { "type": "string", "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." } } }, "v1beta1.IngressRule": { "id": "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": { "host": { "type": "string", "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." }, "http": { "$ref": "v1beta1.HTTPIngressRuleValue" } } }, "v1beta1.HTTPIngressRuleValue": { "id": "v1beta1.HTTPIngressRuleValue", "description": "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http://\u003chost\u003e/\u003cpath\u003e?\u003csearchpart\u003e -\u003e 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": { "type": "array", "items": { "$ref": "v1beta1.HTTPIngressPath" }, "description": "A collection of paths that map requests to backends." } } }, "v1beta1.HTTPIngressPath": { "id": "v1beta1.HTTPIngressPath", "description": "HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend.", "required": [ "backend" ], "properties": { "path": { "type": "string", "description": "Path is a 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." }, "backend": { "$ref": "v1beta1.IngressBackend", "description": "Backend defines the referenced service endpoint to which the traffic will be forwarded to." } } }, "v1beta1.IngressStatus": { "id": "v1beta1.IngressStatus", "description": "IngressStatus describe the current state of the Ingress.", "properties": { "loadBalancer": { "$ref": "v1.LoadBalancerStatus", "description": "LoadBalancer contains the current status of the load-balancer." } } }, "v1.LoadBalancerStatus": { "id": "v1.LoadBalancerStatus", "description": "LoadBalancerStatus represents the status of a load-balancer.", "properties": { "ingress": { "type": "array", "items": { "$ref": "v1.LoadBalancerIngress" }, "description": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points." } } }, "v1.LoadBalancerIngress": { "id": "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": { "ip": { "type": "string", "description": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)" }, "hostname": { "type": "string", "description": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)" } } }, "v1beta1.JobList": { "id": "v1beta1.JobList", "description": "JobList is a collection of jobs.", "required": [ "items" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "items": { "type": "array", "items": { "$ref": "v1beta1.Job" }, "description": "Items is the list of Job." } } }, "v1beta1.Job": { "id": "v1beta1.Job", "description": "Job represents the configuration of a single job.", "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "description": "Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1beta1.JobSpec", "description": "Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" }, "status": { "$ref": "v1beta1.JobStatus", "description": "Status is a structure describing current status of a job. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1beta1.JobSpec": { "id": "v1beta1.JobSpec", "description": "JobSpec describes how the job execution will look like.", "required": [ "template" ], "properties": { "parallelism": { "type": "integer", "format": "int32", "description": "Parallelism specifies the maximum desired number of pods the job should run at object given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) \u003c .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://releases.k8s.io/release-1.2/docs/user-guide/jobs.md" }, "completions": { "type": "integer", "format": "int32", "description": "Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of object pod signals the success of all pods, and allows parallelism to have object 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://releases.k8s.io/release-1.2/docs/user-guide/jobs.md" }, "activeDeadlineSeconds": { "type": "integer", "format": "int64", "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" }, "selector": { "$ref": "v1beta1.LabelSelector", "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://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors" }, "autoSelector": { "type": "boolean", "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/release-1.2/docs/design/selector-generation.md" }, "template": { "$ref": "v1.PodTemplateSpec", "description": "Template is the object that describes the pod that will be created when executing a job. More info: http://releases.k8s.io/release-1.2/docs/user-guide/jobs.md" } } }, "v1beta1.JobStatus": { "id": "v1beta1.JobStatus", "description": "JobStatus represents the current state of a Job.", "properties": { "conditions": { "type": "array", "items": { "$ref": "v1beta1.JobCondition" }, "description": "Conditions represent the latest available observations of an object's current state. More info: http://releases.k8s.io/release-1.2/docs/user-guide/jobs.md" }, "startTime": { "type": "string", "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." }, "completionTime": { "type": "string", "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." }, "active": { "type": "integer", "format": "int32", "description": "Active is the number of actively running pods." }, "succeeded": { "type": "integer", "format": "int32", "description": "Succeeded is the number of pods which reached Phase Succeeded." }, "failed": { "type": "integer", "format": "int32", "description": "Failed is the number of pods which reached Phase Failed." } } }, "v1beta1.JobCondition": { "id": "v1beta1.JobCondition", "description": "JobCondition describes current state of a job.", "required": [ "type", "status" ], "properties": { "type": { "type": "string", "description": "Type of job condition, Complete or Failed." }, "status": { "type": "string", "description": "Status of the condition, one of True, False, Unknown." }, "lastProbeTime": { "type": "string", "description": "Last time the condition was checked." }, "lastTransitionTime": { "type": "string", "description": "Last time the condition transit from one status to another." }, "reason": { "type": "string", "description": "(brief) reason for the condition's last transition." }, "message": { "type": "string", "description": "Human readable message indicating details about last transition." } } }, "v1beta1.ReplicaSetList": { "id": "v1beta1.ReplicaSetList", "description": "ReplicaSetList is a collection of ReplicaSets.", "required": [ "items" ], "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "unversioned.ListMeta", "description": "Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "items": { "type": "array", "items": { "$ref": "v1beta1.ReplicaSet" }, "description": "List of ReplicaSets. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md" } } }, "v1beta1.ReplicaSet": { "id": "v1beta1.ReplicaSet", "description": "ReplicaSet represents the configuration of a ReplicaSet.", "properties": { "kind": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#types-kinds" }, "apiVersion": { "type": "string", "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/release-1.2/docs/devel/api-conventions.md#resources" }, "metadata": { "$ref": "v1.ObjectMeta", "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/release-1.2/docs/devel/api-conventions.md#metadata" }, "spec": { "$ref": "v1beta1.ReplicaSetSpec", "description": "Spec defines the specification of the desired behavior of the ReplicaSet. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status" }, "status": { "$ref": "v1beta1.ReplicaSetStatus", "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/release-1.2/docs/devel/api-conventions.md#spec-and-status" } } }, "v1beta1.ReplicaSetSpec": { "id": "v1beta1.ReplicaSetSpec", "description": "ReplicaSetSpec is the specification of a ReplicaSet.", "properties": { "replicas": { "type": "integer", "format": "int32", "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://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#what-is-a-replication-controller" }, "selector": { "$ref": "v1beta1.LabelSelector", "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://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors" }, "template": { "$ref": "v1.PodTemplateSpec", "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#pod-template" } } }, "v1beta1.ReplicaSetStatus": { "id": "v1beta1.ReplicaSetStatus", "description": "ReplicaSetStatus represents the current status of a ReplicaSet.", "required": [ "replicas" ], "properties": { "replicas": { "type": "integer", "format": "int32", "description": "Replicas is the most recently oberved number of replicas. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#what-is-a-replication-controller" }, "fullyLabeledReplicas": { "type": "integer", "format": "int32", "description": "The number of pods that have labels matching the labels of the pod template of the replicaset." }, "observedGeneration": { "type": "integer", "format": "int64", "description": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet." } } } } }python-k8sclient-0.4.0/k8sclient/__init__.py0000664000567000056710000000123313046233226022114 0ustar jenkinsjenkins00000000000000# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. import pbr.version __version__ = pbr.version.VersionInfo('python-k8sclient').version_string() python-k8sclient-0.4.0/k8sclient/client/0000775000567000056710000000000013046233470021263 5ustar jenkinsjenkins00000000000000python-k8sclient-0.4.0/k8sclient/client/apis/0000775000567000056710000000000013046233470022217 5ustar jenkinsjenkins00000000000000python-k8sclient-0.4.0/k8sclient/client/apis/__init__.py0000664000567000056710000000014513046233226024327 0ustar jenkinsjenkins00000000000000from __future__ import absolute_import # import apis into api package from .apiv_api import ApivApi python-k8sclient-0.4.0/k8sclient/client/apis/apiv_api.py0000664000567000056710000345442413046233226024400 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ ApivApi.py Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from __future__ import absolute_import import sys import os # python 2 and python 3 compatibility library from six import iteritems from ..configuration import Configuration from ..api_client import ApiClient class ApivApi(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ 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('https://127.0.0.1:443/') self.api_client = config.api_client 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: None If the method is called asynchronously, returns the request thread. """ all_params = [] all_params.append('callback') params = 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'] resource_path = '/api/v1'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response def list_namespaced_component_status(self, **kwargs): """ 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_namespaced_component_status(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1ComponentStatusList If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_component_status" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/componentstatuses'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ComponentStatusList', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_component_status(self, name, **kwargs): """ read the specified 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.read_namespaced_component_status(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ComponentStatus (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ComponentStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_component_status`") all_params = ['name', 'pretty'] all_params.append('callback') params = 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_component_status" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/componentstatuses/{name}'.replace('{format}', 'json') method = 'GET' 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 = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ComponentStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def list_config_map(self, **kwargs): """ 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_config_map(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1ConfigMapList If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_config_map" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/configmaps'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ConfigMapList', auth_settings=auth_settings, callback=params.get('callback')) return response def list_endpoints(self, **kwargs): """ 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_endpoints(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1EndpointsList If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_endpoints" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/endpoints'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1EndpointsList', auth_settings=auth_settings, callback=params.get('callback')) return response def list_event(self, **kwargs): """ 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_event(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1EventList If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_event" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/events'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1EventList', auth_settings=auth_settings, callback=params.get('callback')) return response def list_limit_range(self, **kwargs): """ 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_limit_range(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1LimitRangeList If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_limit_range" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/limitranges'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1LimitRangeList', auth_settings=auth_settings, callback=params.get('callback')) return response def list_namespaced_namespace(self, **kwargs): """ 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_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1NamespaceList If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_namespace" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1NamespaceList', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_namespace(self, body, **kwargs): """ 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_namespace(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Namespace body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Namespace If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_namespace`") all_params = ['body', 'pretty'] all_params.append('callback') params = 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_namespace" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces'.replace('{format}', 'json') method = 'POST' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Namespace', auth_settings=auth_settings, callback=params.get('callback')) return response def deletecollection_namespaced_namespace(self, **kwargs): """ 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.deletecollection_namespaced_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method deletecollection_namespaced_namespace" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces'.replace('{format}', 'json') method = 'DELETE' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_binding(self, body, namespace, **kwargs): """ 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_binding(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Binding 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: V1Binding If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_binding`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_binding`") all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') params = 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_binding" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/bindings'.replace('{format}', 'json') method = 'POST' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Binding', auth_settings=auth_settings, callback=params.get('callback')) return response def list_namespaced_config_map(self, namespace, **kwargs): """ 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_config_map(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1ConfigMapList If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_config_map`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_config_map" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/configmaps'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ConfigMapList', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_config_map(self, body, namespace, **kwargs): """ 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_config_map(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1ConfigMap 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: V1ConfigMap If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_config_map`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_config_map`") all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') params = 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_config_map" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/configmaps'.replace('{format}', 'json') method = 'POST' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ConfigMap', auth_settings=auth_settings, callback=params.get('callback')) return response def deletecollection_namespaced_config_map(self, namespace, **kwargs): """ 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.deletecollection_namespaced_config_map(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_config_map`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method deletecollection_namespaced_config_map" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/configmaps'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_config_map(self, namespace, name, **kwargs): """ read 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.read_namespaced_config_map(namespace, name, 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 name: name of the ConfigMap (required) :param str pretty: If 'true', then the output is pretty printed. :param bool export: Should this value be exported. Export strips fields that a user can not specify. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1ConfigMap If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_config_map`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_config_map`") all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = 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_config_map" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/configmaps/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'export' in params: query_params['export'] = params['export'] if 'exact' in params: query_params['exact'] = params['exact'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ConfigMap', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_config_map(self, body, namespace, name, **kwargs): """ replace 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.replace_namespaced_config_map(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1ConfigMap body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ConfigMap (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ConfigMap If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_config_map`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_config_map`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_config_map`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_config_map" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/configmaps/{name}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ConfigMap', auth_settings=auth_settings, callback=params.get('callback')) return response def delete_namespaced_config_map(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1DeleteOptions body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ConfigMap (required) :param str pretty: If 'true', then the output is pretty printed. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_config_map`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_config_map`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_config_map`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/api/v1/namespaces/{namespace}/configmaps/{name}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_config_map(self, body, namespace, name, **kwargs): """ 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_config_map(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ConfigMap (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ConfigMap If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_config_map`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_config_map`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_config_map`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_config_map" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/configmaps/{name}'.replace('{format}', 'json') method = 'PATCH' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ConfigMap', auth_settings=auth_settings, callback=params.get('callback')) return response def list_namespaced_endpoints(self, namespace, **kwargs): """ 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_endpoints(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1EndpointsList If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_endpoints`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_endpoints" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/endpoints'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1EndpointsList', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_endpoints(self, body, namespace, **kwargs): """ create a 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_endpoints(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Endpoints 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: V1Endpoints If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_endpoints`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_endpoints`") all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') params = 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_endpoints" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/endpoints'.replace('{format}', 'json') method = 'POST' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Endpoints', auth_settings=auth_settings, callback=params.get('callback')) return response def deletecollection_namespaced_endpoints(self, namespace, **kwargs): """ 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.deletecollection_namespaced_endpoints(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_endpoints`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method deletecollection_namespaced_endpoints" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/endpoints'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_endpoints(self, namespace, name, **kwargs): """ read 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.read_namespaced_endpoints(namespace, name, 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 name: name of the Endpoints (required) :param str pretty: If 'true', then the output is pretty printed. :param bool export: Should this value be exported. Export strips fields that a user can not specify. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1Endpoints If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_endpoints`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_endpoints`") all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = 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_endpoints" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/endpoints/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'export' in params: query_params['export'] = params['export'] if 'exact' in params: query_params['exact'] = params['exact'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Endpoints', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_endpoints(self, body, namespace, name, **kwargs): """ replace 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.replace_namespaced_endpoints(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Endpoints body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Endpoints (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Endpoints If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_endpoints`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_endpoints`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_endpoints`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_endpoints" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/endpoints/{name}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Endpoints', auth_settings=auth_settings, callback=params.get('callback')) return response def delete_namespaced_endpoints(self, body, namespace, name, **kwargs): """ delete a 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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1DeleteOptions body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Endpoints (required) :param str pretty: If 'true', then the output is pretty printed. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_endpoints`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_endpoints`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_endpoints`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/api/v1/namespaces/{namespace}/endpoints/{name}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_endpoints(self, body, namespace, name, **kwargs): """ 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_endpoints(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Endpoints (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Endpoints If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_endpoints`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_endpoints`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_endpoints`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_endpoints" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/endpoints/{name}'.replace('{format}', 'json') method = 'PATCH' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Endpoints', auth_settings=auth_settings, callback=params.get('callback')) return response def list_namespaced_event(self, namespace, **kwargs): """ 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_event(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1EventList If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_event`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_event" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/events'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1EventList', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_event(self, body, namespace, **kwargs): """ create a 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_event(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Event 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: V1Event If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_event`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_event`") all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') params = 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_event" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/events'.replace('{format}', 'json') method = 'POST' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Event', auth_settings=auth_settings, callback=params.get('callback')) return response def deletecollection_namespaced_event(self, namespace, **kwargs): """ 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.deletecollection_namespaced_event(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_event`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method deletecollection_namespaced_event" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/events'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_event(self, namespace, name, **kwargs): """ read 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.read_namespaced_event(namespace, name, 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 name: name of the Event (required) :param str pretty: If 'true', then the output is pretty printed. :param bool export: Should this value be exported. Export strips fields that a user can not specify. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1Event If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_event`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_event`") all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = 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_event" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/events/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'export' in params: query_params['export'] = params['export'] if 'exact' in params: query_params['exact'] = params['exact'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Event', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_event(self, body, namespace, name, **kwargs): """ replace 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.replace_namespaced_event(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Event body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Event (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Event If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_event`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_event`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_event`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_event" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/events/{name}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Event', auth_settings=auth_settings, callback=params.get('callback')) return response def delete_namespaced_event(self, body, namespace, name, **kwargs): """ delete a 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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1DeleteOptions body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Event (required) :param str pretty: If 'true', then the output is pretty printed. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_event`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_event`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_event`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/api/v1/namespaces/{namespace}/events/{name}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_event(self, body, namespace, name, **kwargs): """ 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_event(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Event (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Event If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_event`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_event`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_event`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_event" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/events/{name}'.replace('{format}', 'json') method = 'PATCH' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Event', auth_settings=auth_settings, callback=params.get('callback')) return response def list_namespaced_limit_range(self, namespace, **kwargs): """ 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_limit_range(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1LimitRangeList If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_limit_range`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_limit_range" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/limitranges'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1LimitRangeList', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_limit_range(self, body, namespace, **kwargs): """ 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_limit_range(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1LimitRange 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: V1LimitRange If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_limit_range`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_limit_range`") all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') params = 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_limit_range" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/limitranges'.replace('{format}', 'json') method = 'POST' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1LimitRange', auth_settings=auth_settings, callback=params.get('callback')) return response def deletecollection_namespaced_limit_range(self, namespace, **kwargs): """ 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.deletecollection_namespaced_limit_range(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_limit_range`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method deletecollection_namespaced_limit_range" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/limitranges'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_limit_range(self, namespace, name, **kwargs): """ read 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.read_namespaced_limit_range(namespace, name, 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 name: name of the LimitRange (required) :param str pretty: If 'true', then the output is pretty printed. :param bool export: Should this value be exported. Export strips fields that a user can not specify. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1LimitRange If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_limit_range`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_limit_range`") all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = 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_limit_range" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/limitranges/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'export' in params: query_params['export'] = params['export'] if 'exact' in params: query_params['exact'] = params['exact'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1LimitRange', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_limit_range(self, body, namespace, name, **kwargs): """ replace 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.replace_namespaced_limit_range(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1LimitRange body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the LimitRange (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1LimitRange If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_limit_range`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_limit_range`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_limit_range`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_limit_range" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/limitranges/{name}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1LimitRange', auth_settings=auth_settings, callback=params.get('callback')) return response def delete_namespaced_limit_range(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1DeleteOptions body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the LimitRange (required) :param str pretty: If 'true', then the output is pretty printed. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_limit_range`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_limit_range`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_limit_range`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/api/v1/namespaces/{namespace}/limitranges/{name}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_limit_range(self, body, namespace, name, **kwargs): """ 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_limit_range(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the LimitRange (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1LimitRange If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_limit_range`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_limit_range`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_limit_range`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_limit_range" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/limitranges/{name}'.replace('{format}', 'json') method = 'PATCH' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1LimitRange', auth_settings=auth_settings, callback=params.get('callback')) return response def list_namespaced_persistent_volume_claim(self, namespace, **kwargs): """ 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_persistent_volume_claim(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1PersistentVolumeClaimList If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_persistent_volume_claim`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_persistent_volume_claim" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1PersistentVolumeClaimList', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_persistent_volume_claim(self, body, namespace, **kwargs): """ 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_persistent_volume_claim(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1PersistentVolumeClaim 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: V1PersistentVolumeClaim If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_persistent_volume_claim`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_persistent_volume_claim`") all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') params = 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_persistent_volume_claim" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims'.replace('{format}', 'json') method = 'POST' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1PersistentVolumeClaim', auth_settings=auth_settings, callback=params.get('callback')) return response def deletecollection_namespaced_persistent_volume_claim(self, namespace, **kwargs): """ 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.deletecollection_namespaced_persistent_volume_claim(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_persistent_volume_claim`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method deletecollection_namespaced_persistent_volume_claim" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_persistent_volume_claim(self, namespace, name, **kwargs): """ read 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.read_namespaced_persistent_volume_claim(namespace, name, 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 name: name of the PersistentVolumeClaim (required) :param str pretty: If 'true', then the output is pretty printed. :param bool export: Should this value be exported. Export strips fields that a user can not specify. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1PersistentVolumeClaim If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_persistent_volume_claim`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_persistent_volume_claim`") all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = 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_persistent_volume_claim" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'export' in params: query_params['export'] = params['export'] if 'exact' in params: query_params['exact'] = params['exact'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1PersistentVolumeClaim', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_persistent_volume_claim(self, body, namespace, name, **kwargs): """ replace 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.replace_namespaced_persistent_volume_claim(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1PersistentVolumeClaim body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the PersistentVolumeClaim (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PersistentVolumeClaim If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_persistent_volume_claim`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_persistent_volume_claim`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_persistent_volume_claim`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_persistent_volume_claim" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1PersistentVolumeClaim', auth_settings=auth_settings, callback=params.get('callback')) return response def delete_namespaced_persistent_volume_claim(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1DeleteOptions body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the PersistentVolumeClaim (required) :param str pretty: If 'true', then the output is pretty printed. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_persistent_volume_claim`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_persistent_volume_claim`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_persistent_volume_claim`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_persistent_volume_claim(self, body, namespace, name, **kwargs): """ 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_persistent_volume_claim(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the PersistentVolumeClaim (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PersistentVolumeClaim If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_persistent_volume_claim`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_persistent_volume_claim`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_persistent_volume_claim`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_persistent_volume_claim" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}'.replace('{format}', 'json') method = 'PATCH' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1PersistentVolumeClaim', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_persistent_volume_claim_status(self, body, namespace, name, **kwargs): """ replace 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.replace_namespaced_persistent_volume_claim_status(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1PersistentVolumeClaim body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the PersistentVolumeClaim (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PersistentVolumeClaim If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_persistent_volume_claim_status`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_persistent_volume_claim_status`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_persistent_volume_claim_status`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_persistent_volume_claim_status" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1PersistentVolumeClaim', auth_settings=auth_settings, callback=params.get('callback')) return response def list_namespaced_pod(self, namespace, **kwargs): """ 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_pod(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1PodList If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1PodList', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_pod(self, body, namespace, **kwargs): """ 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_pod(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Pod 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: V1Pod If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod`") all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') params = 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" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods'.replace('{format}', 'json') method = 'POST' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Pod', auth_settings=auth_settings, callback=params.get('callback')) return response def deletecollection_namespaced_pod(self, namespace, **kwargs): """ 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.deletecollection_namespaced_pod(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_pod`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method deletecollection_namespaced_pod" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_pod(self, namespace, name, **kwargs): """ read 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.read_namespaced_pod(namespace, name, 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 name: name of the Pod (required) :param str pretty: If 'true', then the output is pretty printed. :param bool export: Should this value be exported. Export strips fields that a user can not specify. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1Pod If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod`") all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = 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" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'export' in params: query_params['export'] = params['export'] if 'exact' in params: query_params['exact'] = params['exact'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Pod', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_pod(self, body, namespace, name, **kwargs): """ replace 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.replace_namespaced_pod(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Pod body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Pod (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Pod If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Pod', auth_settings=auth_settings, callback=params.get('callback')) return response def delete_namespaced_pod(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1DeleteOptions body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Pod (required) :param str pretty: If 'true', then the output is pretty printed. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_pod`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_pod`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/api/v1/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_pod(self, body, namespace, name, **kwargs): """ 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_pod(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Pod (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Pod If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') method = 'PATCH' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Pod', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_get_namespaced_pod_attach(self, namespace, name, **kwargs): """ connect GET requests to attach 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.connect_get_namespaced_pod_attach(namespace, name, 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 name: name of the Pod (required) :param bool stdin: Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. :param bool stdout: Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. :param bool stderr: Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. :param bool tty: TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. :param str container: The container in which to execute the command. Defaults to only container if there is only one container in the pod. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_attach`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_attach`") all_params = ['namespace', 'name', 'stdin', 'stdout', 'stderr', 'tty', 'container'] all_params.append('callback') params = 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_get_namespaced_pod_attach" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/attach'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'stdin' in params: query_params['stdin'] = params['stdin'] if 'stdout' in params: query_params['stdout'] = params['stdout'] if 'stderr' in params: query_params['stderr'] = params['stderr'] if 'tty' in params: query_params['tty'] = params['tty'] if 'container' in params: query_params['container'] = params['container'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_post_namespaced_pod_attach(self, namespace, name, **kwargs): """ connect POST requests to attach 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.connect_post_namespaced_pod_attach(namespace, name, 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 name: name of the Pod (required) :param bool stdin: Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. :param bool stdout: Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. :param bool stderr: Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. :param bool tty: TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. :param str container: The container in which to execute the command. Defaults to only container if there is only one container in the pod. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_attach`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_attach`") all_params = ['namespace', 'name', 'stdin', 'stdout', 'stderr', 'tty', 'container'] all_params.append('callback') params = 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_pod_attach" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/attach'.replace('{format}', 'json') method = 'POST' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'stdin' in params: query_params['stdin'] = params['stdin'] if 'stdout' in params: query_params['stdout'] = params['stdout'] if 'stderr' in params: query_params['stderr'] = params['stderr'] if 'tty' in params: query_params['tty'] = params['tty'] if 'container' in params: query_params['container'] = params['container'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_binding_binding(self, body, namespace, name, **kwargs): """ 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_binding_binding(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Binding body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Binding (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Binding If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_binding_binding`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_binding_binding`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `create_namespaced_binding_binding`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_binding_binding" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/binding'.replace('{format}', 'json') method = 'POST' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Binding', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_get_namespaced_pod_exec(self, namespace, name, **kwargs): """ connect GET requests to exec 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.connect_get_namespaced_pod_exec(namespace, name, 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 name: name of the Pod (required) :param bool stdin: Redirect the standard input stream of the pod for this call. Defaults to false. :param bool stdout: Redirect the standard output stream of the pod for this call. Defaults to true. :param bool stderr: Redirect the standard error stream of the pod for this call. Defaults to true. :param bool tty: TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. :param str container: Container in which to execute the command. Defaults to only container if there is only one container in the pod. :param str command: Command is the remote command to execute. argv array. Not executed within a shell. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_exec`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_exec`") all_params = ['namespace', 'name', 'stdin', 'stdout', 'stderr', 'tty', 'container', 'command'] all_params.append('callback') params = 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_get_namespaced_pod_exec" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/exec'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'stdin' in params: query_params['stdin'] = params['stdin'] if 'stdout' in params: query_params['stdout'] = params['stdout'] if 'stderr' in params: query_params['stderr'] = params['stderr'] if 'tty' in params: query_params['tty'] = params['tty'] if 'container' in params: query_params['container'] = params['container'] if 'command' in params: query_params['command'] = params['command'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_post_namespaced_pod_exec(self, namespace, name, **kwargs): """ connect POST requests to exec 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.connect_post_namespaced_pod_exec(namespace, name, 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 name: name of the Pod (required) :param bool stdin: Redirect the standard input stream of the pod for this call. Defaults to false. :param bool stdout: Redirect the standard output stream of the pod for this call. Defaults to true. :param bool stderr: Redirect the standard error stream of the pod for this call. Defaults to true. :param bool tty: TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. :param str container: Container in which to execute the command. Defaults to only container if there is only one container in the pod. :param str command: Command is the remote command to execute. argv array. Not executed within a shell. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_exec`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_exec`") all_params = ['namespace', 'name', 'stdin', 'stdout', 'stderr', 'tty', 'container', 'command'] all_params.append('callback') params = 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_pod_exec" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/exec'.replace('{format}', 'json') method = 'POST' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'stdin' in params: query_params['stdin'] = params['stdin'] if 'stdout' in params: query_params['stdout'] = params['stdout'] if 'stderr' in params: query_params['stderr'] = params['stderr'] if 'tty' in params: query_params['tty'] = params['tty'] if 'container' in params: query_params['container'] = params['container'] if 'command' in params: query_params['command'] = params['command'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_pod_log(self, namespace, name, **kwargs): """ read log 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.read_namespaced_pod_log(namespace, name, 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 name: name of the Pod (required) :param str pretty: If 'true', then the output is pretty printed. :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 the log stream of the pod. Defaults to false. :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 bool timestamps: If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. :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 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. :return: V1Pod If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_log`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_log`") all_params = ['namespace', 'name', 'pretty', 'container', 'follow', 'previous', 'since_seconds', 'since_time', 'timestamps', 'tail_lines', 'limit_bytes'] all_params.append('callback') params = 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_log" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/log'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'container' in params: query_params['container'] = params['container'] if 'follow' in params: query_params['follow'] = params['follow'] 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 'timestamps' in params: query_params['timestamps'] = params['timestamps'] if 'tail_lines' in params: query_params['tailLines'] = params['tail_lines'] if 'limit_bytes' in params: query_params['limitBytes'] = params['limit_bytes'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Pod', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_get_namespaced_pod_portforward(self, namespace, name, **kwargs): """ connect GET requests to portforward 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.connect_get_namespaced_pod_portforward(namespace, name, 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 name: name of the Pod (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_portforward`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_portforward`") all_params = ['namespace', 'name'] all_params.append('callback') params = 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_get_namespaced_pod_portforward" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/portforward'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_post_namespaced_pod_portforward(self, namespace, name, **kwargs): """ connect POST requests to portforward 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.connect_post_namespaced_pod_portforward(namespace, name, 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 name: name of the Pod (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_portforward`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_portforward`") all_params = ['namespace', 'name'] all_params.append('callback') params = 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_pod_portforward" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/portforward'.replace('{format}', 'json') method = 'POST' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_get_namespaced_pod_proxy(self, namespace, name, **kwargs): """ connect GET requests to proxy 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.connect_get_namespaced_pod_proxy(namespace, name, 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 name: name of the Pod (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. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_proxy`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_proxy`") all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = 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_get_namespaced_pod_proxy" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_put_namespaced_pod_proxy(self, namespace, name, **kwargs): """ connect PUT requests to proxy 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.connect_put_namespaced_pod_proxy(namespace, name, 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 name: name of the Pod (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. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_pod_proxy`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_pod_proxy`") all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = 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_put_namespaced_pod_proxy" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_post_namespaced_pod_proxy(self, namespace, name, **kwargs): """ connect POST requests to proxy 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.connect_post_namespaced_pod_proxy(namespace, name, 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 name: name of the Pod (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. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_proxy`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_proxy`") all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = 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_pod_proxy" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy'.replace('{format}', 'json') method = 'POST' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_delete_namespaced_pod_proxy(self, namespace, name, **kwargs): """ connect DELETE requests to proxy 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.connect_delete_namespaced_pod_proxy(namespace, name, 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 name: name of the Pod (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. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_pod_proxy`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_pod_proxy`") all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = 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_delete_namespaced_pod_proxy" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_options_namespaced_pod_proxy(self, namespace, name, **kwargs): """ connect OPTIONS requests to proxy 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.connect_options_namespaced_pod_proxy(namespace, name, 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 name: name of the Pod (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. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_pod_proxy`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_pod_proxy`") all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = 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_options_namespaced_pod_proxy" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy'.replace('{format}', 'json') method = 'OPTIONS' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_get_namespaced_pod_proxy_1(self, namespace, name, path, **kwargs): """ connect GET requests to proxy 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.connect_get_namespaced_pod_proxy_1(namespace, name, path, 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 name: name of the Pod (required) :param str path: path to the resource (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. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_proxy_1`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_proxy_1`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `connect_get_namespaced_pod_proxy_1`") all_params = ['namespace', 'name', 'path', 'path'] all_params.append('callback') params = 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_get_namespaced_pod_proxy_1" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_put_namespaced_pod_proxy_2(self, namespace, name, path, **kwargs): """ connect PUT requests to proxy 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.connect_put_namespaced_pod_proxy_2(namespace, name, path, 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 name: name of the Pod (required) :param str path: path to the resource (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. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_pod_proxy_2`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_pod_proxy_2`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `connect_put_namespaced_pod_proxy_2`") all_params = ['namespace', 'name', 'path', 'path'] all_params.append('callback') params = 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_put_namespaced_pod_proxy_2" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_post_namespaced_pod_proxy_3(self, namespace, name, path, **kwargs): """ connect POST requests to proxy 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.connect_post_namespaced_pod_proxy_3(namespace, name, path, 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 name: name of the Pod (required) :param str path: path to the resource (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. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_proxy_3`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_proxy_3`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `connect_post_namespaced_pod_proxy_3`") all_params = ['namespace', 'name', 'path', 'path'] all_params.append('callback') params = 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_pod_proxy_3" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}'.replace('{format}', 'json') method = 'POST' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_delete_namespaced_pod_proxy_4(self, namespace, name, path, **kwargs): """ connect DELETE requests to proxy 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.connect_delete_namespaced_pod_proxy_4(namespace, name, path, 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 name: name of the Pod (required) :param str path: path to the resource (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. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_pod_proxy_4`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_pod_proxy_4`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `connect_delete_namespaced_pod_proxy_4`") all_params = ['namespace', 'name', 'path', 'path'] all_params.append('callback') params = 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_delete_namespaced_pod_proxy_4" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_options_namespaced_pod_proxy_5(self, namespace, name, path, **kwargs): """ connect OPTIONS requests to proxy 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.connect_options_namespaced_pod_proxy_5(namespace, name, path, 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 name: name of the Pod (required) :param str path: path to the resource (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. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_pod_proxy_5`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_pod_proxy_5`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `connect_options_namespaced_pod_proxy_5`") all_params = ['namespace', 'name', 'path', 'path'] all_params.append('callback') params = 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_options_namespaced_pod_proxy_5" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}'.replace('{format}', 'json') method = 'OPTIONS' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_pod_status(self, body, namespace, name, **kwargs): """ replace 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.replace_namespaced_pod_status(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Pod body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Pod (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Pod If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_status`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_status`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_status`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_status" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/pods/{name}/status'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Pod', auth_settings=auth_settings, callback=params.get('callback')) return response def list_namespaced_pod_template(self, namespace, **kwargs): """ 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_pod_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1PodTemplateList If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod_template`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_template" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/podtemplates'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1PodTemplateList', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_pod_template(self, body, namespace, **kwargs): """ 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_pod_template(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1PodTemplate 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: V1PodTemplate If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod_template`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_template`") all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') params = 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_template" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/podtemplates'.replace('{format}', 'json') method = 'POST' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1PodTemplate', auth_settings=auth_settings, callback=params.get('callback')) return response def deletecollection_namespaced_pod_template(self, namespace, **kwargs): """ 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.deletecollection_namespaced_pod_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_pod_template`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method deletecollection_namespaced_pod_template" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/podtemplates'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_pod_template(self, namespace, name, **kwargs): """ read 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.read_namespaced_pod_template(namespace, name, 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 name: name of the PodTemplate (required) :param str pretty: If 'true', then the output is pretty printed. :param bool export: Should this value be exported. Export strips fields that a user can not specify. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1PodTemplate If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_template`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_template`") all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = 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_template" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/podtemplates/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'export' in params: query_params['export'] = params['export'] if 'exact' in params: query_params['exact'] = params['exact'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1PodTemplate', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_pod_template(self, body, namespace, name, **kwargs): """ replace 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.replace_namespaced_pod_template(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1PodTemplate body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the PodTemplate (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PodTemplate If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_template`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_template`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_template`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_template" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/podtemplates/{name}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1PodTemplate', auth_settings=auth_settings, callback=params.get('callback')) return response def delete_namespaced_pod_template(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1DeleteOptions body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the PodTemplate (required) :param str pretty: If 'true', then the output is pretty printed. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_pod_template`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod_template`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_pod_template`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/api/v1/namespaces/{namespace}/podtemplates/{name}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_pod_template(self, body, namespace, name, **kwargs): """ 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_pod_template(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the PodTemplate (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PodTemplate If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_template`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_template`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_template`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_template" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/podtemplates/{name}'.replace('{format}', 'json') method = 'PATCH' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1PodTemplate', auth_settings=auth_settings, callback=params.get('callback')) return response def list_namespaced_replication_controller(self, namespace, **kwargs): """ 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_replication_controller(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1ReplicationControllerList If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_replication_controller`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_replication_controller" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ReplicationControllerList', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_replication_controller(self, body, namespace, **kwargs): """ 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_namespaced_replication_controller(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1ReplicationController 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: V1ReplicationController If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_replication_controller`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_replication_controller`") all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') params = 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_replication_controller" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers'.replace('{format}', 'json') method = 'POST' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ReplicationController', auth_settings=auth_settings, callback=params.get('callback')) return response def deletecollection_namespaced_replication_controller(self, namespace, **kwargs): """ 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.deletecollection_namespaced_replication_controller(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_replication_controller`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method deletecollection_namespaced_replication_controller" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_replication_controller(self, namespace, name, **kwargs): """ read 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.read_namespaced_replication_controller(namespace, name, 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 name: name of the ReplicationController (required) :param str pretty: If 'true', then the output is pretty printed. :param bool export: Should this value be exported. Export strips fields that a user can not specify. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1ReplicationController If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replication_controller`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replication_controller`") all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = 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_replication_controller" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'export' in params: query_params['export'] = params['export'] if 'exact' in params: query_params['exact'] = params['exact'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ReplicationController', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_replication_controller(self, body, namespace, name, **kwargs): """ replace 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.replace_namespaced_replication_controller(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1ReplicationController body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ReplicationController (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ReplicationController If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replication_controller`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replication_controller`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replication_controller`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_replication_controller" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ReplicationController', auth_settings=auth_settings, callback=params.get('callback')) return response def delete_namespaced_replication_controller(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1DeleteOptions body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ReplicationController (required) :param str pretty: If 'true', then the output is pretty printed. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_replication_controller`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replication_controller`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_replication_controller`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_replication_controller(self, body, namespace, name, **kwargs): """ 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_replication_controller(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ReplicationController (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ReplicationController If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replication_controller`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replication_controller`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replication_controller`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_replication_controller" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}'.replace('{format}', 'json') method = 'PATCH' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ReplicationController', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_scale_scale(self, namespace, name, **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(namespace, name, 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 name: name of the Scale (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Scale If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_scale_scale`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_scale_scale`") all_params = ['namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Scale', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_scale_scale(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Scale body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Scale (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Scale If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_scale_scale`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_scale_scale`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_scale_scale`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Scale', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_scale_scale(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Scale (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Scale If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_scale_scale`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_scale_scale`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_scale_scale`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') method = 'PATCH' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Scale', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_replication_controller_status(self, body, namespace, name, **kwargs): """ replace 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.replace_namespaced_replication_controller_status(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1ReplicationController body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ReplicationController (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ReplicationController If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replication_controller_status`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replication_controller_status`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replication_controller_status`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_replication_controller_status" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ReplicationController', auth_settings=auth_settings, callback=params.get('callback')) return response def list_namespaced_resource_quota(self, namespace, **kwargs): """ 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_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1ResourceQuotaList If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_resource_quota`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_resource_quota" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/resourcequotas'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ResourceQuotaList', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_resource_quota(self, body, namespace, **kwargs): """ 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_namespaced_resource_quota(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1ResourceQuota 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: V1ResourceQuota If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_resource_quota`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_resource_quota`") all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') params = 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_quota" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/resourcequotas'.replace('{format}', 'json') method = 'POST' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ResourceQuota', auth_settings=auth_settings, callback=params.get('callback')) return response def deletecollection_namespaced_resource_quota(self, namespace, **kwargs): """ 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.deletecollection_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_resource_quota`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method deletecollection_namespaced_resource_quota" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/resourcequotas'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_resource_quota(self, namespace, name, **kwargs): """ read 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.read_namespaced_resource_quota(namespace, name, 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 name: name of the ResourceQuota (required) :param str pretty: If 'true', then the output is pretty printed. :param bool export: Should this value be exported. Export strips fields that a user can not specify. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1ResourceQuota If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_resource_quota`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_resource_quota`") all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = 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_resource_quota" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'export' in params: query_params['export'] = params['export'] if 'exact' in params: query_params['exact'] = params['exact'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ResourceQuota', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_resource_quota(self, body, namespace, name, **kwargs): """ replace 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.replace_namespaced_resource_quota(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1ResourceQuota body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ResourceQuota (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ResourceQuota If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_quota`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_quota`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_quota`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_resource_quota" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ResourceQuota', auth_settings=auth_settings, callback=params.get('callback')) return response def delete_namespaced_resource_quota(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1DeleteOptions body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ResourceQuota (required) :param str pretty: If 'true', then the output is pretty printed. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_resource_quota`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_resource_quota`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_resource_quota`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_resource_quota(self, body, namespace, name, **kwargs): """ 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_resource_quota(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ResourceQuota (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ResourceQuota If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_quota`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_quota`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_quota`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_resource_quota" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}'.replace('{format}', 'json') method = 'PATCH' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ResourceQuota', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_resource_quota_status(self, body, namespace, name, **kwargs): """ replace 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.replace_namespaced_resource_quota_status(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1ResourceQuota body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ResourceQuota (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ResourceQuota If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_quota_status`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_quota_status`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_quota_status`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_resource_quota_status" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}/status'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ResourceQuota', auth_settings=auth_settings, callback=params.get('callback')) return response def list_namespaced_secret(self, namespace, **kwargs): """ 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_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1SecretList If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_secret`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_secret" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/secrets'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1SecretList', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_secret(self, body, namespace, **kwargs): """ 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.create_namespaced_secret(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Secret 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: V1Secret If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_secret`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_secret`") all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') params = 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_secret" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/secrets'.replace('{format}', 'json') method = 'POST' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Secret', auth_settings=auth_settings, callback=params.get('callback')) return response def deletecollection_namespaced_secret(self, namespace, **kwargs): """ 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.deletecollection_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_secret`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method deletecollection_namespaced_secret" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/secrets'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_secret(self, namespace, name, **kwargs): """ read 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.read_namespaced_secret(namespace, name, 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 name: name of the Secret (required) :param str pretty: If 'true', then the output is pretty printed. :param bool export: Should this value be exported. Export strips fields that a user can not specify. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1Secret If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_secret`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_secret`") all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = 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" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/secrets/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'export' in params: query_params['export'] = params['export'] if 'exact' in params: query_params['exact'] = params['exact'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Secret', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_secret(self, body, namespace, name, **kwargs): """ replace 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.replace_namespaced_secret(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Secret body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Secret (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Secret If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_secret`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_secret`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_secret`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_secret" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/secrets/{name}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Secret', auth_settings=auth_settings, callback=params.get('callback')) return response def delete_namespaced_secret(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1DeleteOptions body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Secret (required) :param str pretty: If 'true', then the output is pretty printed. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_secret`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_secret`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_secret`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/api/v1/namespaces/{namespace}/secrets/{name}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_secret(self, body, namespace, name, **kwargs): """ 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_namespaced_secret(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Secret (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Secret If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_secret`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_secret`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_secret`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_secret" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/secrets/{name}'.replace('{format}', 'json') method = 'PATCH' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Secret', auth_settings=auth_settings, callback=params.get('callback')) return response def list_namespaced_service_account(self, namespace, **kwargs): """ 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_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1ServiceAccountList If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_service_account`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_service_account" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ServiceAccountList', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_service_account(self, body, namespace, **kwargs): """ 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.create_namespaced_service_account(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1ServiceAccount 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: V1ServiceAccount If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_service_account`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_service_account`") all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') params = 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_service_account" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts'.replace('{format}', 'json') method = 'POST' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ServiceAccount', auth_settings=auth_settings, callback=params.get('callback')) return response def deletecollection_namespaced_service_account(self, namespace, **kwargs): """ 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.deletecollection_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_service_account`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method deletecollection_namespaced_service_account" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_service_account(self, namespace, name, **kwargs): """ read 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.read_namespaced_service_account(namespace, name, 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 name: name of the ServiceAccount (required) :param str pretty: If 'true', then the output is pretty printed. :param bool export: Should this value be exported. Export strips fields that a user can not specify. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1ServiceAccount If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_service_account`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_service_account`") all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = 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_service_account" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'export' in params: query_params['export'] = params['export'] if 'exact' in params: query_params['exact'] = params['exact'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ServiceAccount', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_service_account(self, body, namespace, name, **kwargs): """ replace 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.replace_namespaced_service_account(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1ServiceAccount body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ServiceAccount (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ServiceAccount If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_service_account`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_service_account`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_service_account`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_service_account" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts/{name}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ServiceAccount', auth_settings=auth_settings, callback=params.get('callback')) return response def delete_namespaced_service_account(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1DeleteOptions body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ServiceAccount (required) :param str pretty: If 'true', then the output is pretty printed. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_service_account`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_service_account`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_service_account`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_account" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts/{name}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_service_account(self, body, namespace, name, **kwargs): """ 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_namespaced_service_account(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ServiceAccount (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ServiceAccount If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_service_account`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_service_account`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_service_account`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_service_account" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/serviceaccounts/{name}'.replace('{format}', 'json') method = 'PATCH' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ServiceAccount', auth_settings=auth_settings, callback=params.get('callback')) return response def list_namespaced_service(self, namespace, **kwargs): """ 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_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1ServiceList If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_service`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_service" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/services'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ServiceList', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_service(self, body, namespace, **kwargs): """ 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.create_namespaced_service(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Service 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: V1Service If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_service`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_service`") all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') params = 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_service" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/services'.replace('{format}', 'json') method = 'POST' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Service', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_service(self, namespace, name, **kwargs): """ read 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.read_namespaced_service(namespace, name, 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 name: name of the Service (required) :param str pretty: If 'true', then the output is pretty printed. :param bool export: Should this value be exported. Export strips fields that a user can not specify. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1Service If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_service`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_service`") all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = 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_service" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'export' in params: query_params['export'] = params['export'] if 'exact' in params: query_params['exact'] = params['exact'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Service', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_service(self, body, namespace, name, **kwargs): """ replace 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.replace_namespaced_service(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Service body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Service (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Service If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_service`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_service`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_service`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_service" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Service', auth_settings=auth_settings, callback=params.get('callback')) return response def delete_namespaced_service(self, namespace, name, **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(namespace, name, 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 name: name of the Service (required) :param str pretty: If 'true', then the output is pretty printed. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_service`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_service`") all_params = ['namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/api/v1/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_service(self, body, namespace, name, **kwargs): """ 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_namespaced_service(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Service (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Service If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_service`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_service`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_service`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_service" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') method = 'PATCH' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Service', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_get_namespaced_service_proxy(self, namespace, name, **kwargs): """ connect GET requests to proxy of 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.connect_get_namespaced_service_proxy(namespace, name, 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 name: name of the Service (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_service_proxy`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_service_proxy`") all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = 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_get_namespaced_service_proxy" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_put_namespaced_service_proxy(self, namespace, name, **kwargs): """ connect PUT requests to proxy of 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.connect_put_namespaced_service_proxy(namespace, name, 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 name: name of the Service (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_service_proxy`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_service_proxy`") all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = 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_put_namespaced_service_proxy" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_post_namespaced_service_proxy(self, namespace, name, **kwargs): """ connect POST requests to proxy of 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.connect_post_namespaced_service_proxy(namespace, name, 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 name: name of the Service (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_service_proxy`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_service_proxy`") all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = 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_service_proxy" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy'.replace('{format}', 'json') method = 'POST' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_delete_namespaced_service_proxy(self, namespace, name, **kwargs): """ connect DELETE requests to proxy of 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.connect_delete_namespaced_service_proxy(namespace, name, 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 name: name of the Service (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_service_proxy`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_service_proxy`") all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = 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_delete_namespaced_service_proxy" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_options_namespaced_service_proxy(self, namespace, name, **kwargs): """ connect OPTIONS requests to proxy of 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.connect_options_namespaced_service_proxy(namespace, name, 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 name: name of the Service (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_service_proxy`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_service_proxy`") all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = 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_options_namespaced_service_proxy" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy'.replace('{format}', 'json') method = 'OPTIONS' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_get_namespaced_service_proxy_6(self, namespace, name, path, **kwargs): """ connect GET requests to proxy of 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.connect_get_namespaced_service_proxy_6(namespace, name, path, 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 name: name of the Service (required) :param str path: path to the resource (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_service_proxy_6`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_service_proxy_6`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `connect_get_namespaced_service_proxy_6`") all_params = ['namespace', 'name', 'path', 'path'] all_params.append('callback') params = 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_get_namespaced_service_proxy_6" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_put_namespaced_service_proxy_7(self, namespace, name, path, **kwargs): """ connect PUT requests to proxy of 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.connect_put_namespaced_service_proxy_7(namespace, name, path, 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 name: name of the Service (required) :param str path: path to the resource (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_service_proxy_7`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_service_proxy_7`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `connect_put_namespaced_service_proxy_7`") all_params = ['namespace', 'name', 'path', 'path'] all_params.append('callback') params = 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_put_namespaced_service_proxy_7" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_post_namespaced_service_proxy_8(self, namespace, name, path, **kwargs): """ connect POST requests to proxy of 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.connect_post_namespaced_service_proxy_8(namespace, name, path, 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 name: name of the Service (required) :param str path: path to the resource (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_service_proxy_8`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_service_proxy_8`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `connect_post_namespaced_service_proxy_8`") all_params = ['namespace', 'name', 'path', 'path'] all_params.append('callback') params = 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_service_proxy_8" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}'.replace('{format}', 'json') method = 'POST' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_delete_namespaced_service_proxy_9(self, namespace, name, path, **kwargs): """ connect DELETE requests to proxy of 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.connect_delete_namespaced_service_proxy_9(namespace, name, path, 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 name: name of the Service (required) :param str path: path to the resource (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_service_proxy_9`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_service_proxy_9`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `connect_delete_namespaced_service_proxy_9`") all_params = ['namespace', 'name', 'path', 'path'] all_params.append('callback') params = 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_delete_namespaced_service_proxy_9" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_options_namespaced_service_proxy_10(self, namespace, name, path, **kwargs): """ connect OPTIONS requests to proxy of 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.connect_options_namespaced_service_proxy_10(namespace, name, path, 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 name: name of the Service (required) :param str path: path to the resource (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_service_proxy_10`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_service_proxy_10`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `connect_options_namespaced_service_proxy_10`") all_params = ['namespace', 'name', 'path', 'path'] all_params.append('callback') params = 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_options_namespaced_service_proxy_10" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}'.replace('{format}', 'json') method = 'OPTIONS' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_service_status(self, body, namespace, name, **kwargs): """ replace 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.replace_namespaced_service_status(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Service body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Service (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Service If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_service_status`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_service_status`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_service_status`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_service_status" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{namespace}/services/{name}/status'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Service', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_namespace(self, name, **kwargs): """ read 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.read_namespaced_namespace(name, callback=callback_function) :param callback function: The callback function 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 export: Should this value be exported. Export strips fields that a user can not specify. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1Namespace If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_namespace`") all_params = ['name', 'pretty', 'export', 'exact'] all_params.append('callback') params = 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_namespace" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'export' in params: query_params['export'] = params['export'] if 'exact' in params: query_params['exact'] = params['exact'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Namespace', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_namespace(self, body, name, **kwargs): """ replace 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.replace_namespaced_namespace(body, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :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. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_namespace`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_namespace`") all_params = ['body', 'name', 'pretty'] all_params.append('callback') params = 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_namespace" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{name}'.replace('{format}', 'json') method = 'PUT' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Namespace', auth_settings=auth_settings, callback=params.get('callback')) return response def delete_namespaced_namespace(self, body, name, **kwargs): """ 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.delete_namespaced_namespace(body, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1DeleteOptions body: (required) :param str name: name of the Namespace (required) :param str pretty: If 'true', then the output is pretty printed. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_namespace`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_namespace`") all_params = ['body', 'name', 'pretty'] all_params.append('callback') params = 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_namespace" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{name}'.replace('{format}', 'json') method = 'DELETE' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_namespace(self, body, name, **kwargs): """ 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_namespace(body, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch 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. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_namespace`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_namespace`") all_params = ['body', 'name', 'pretty'] all_params.append('callback') params = 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_namespace" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{name}'.replace('{format}', 'json') method = 'PATCH' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Namespace', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_namespace_finalize(self, body, name, **kwargs): """ replace finalize 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.replace_namespaced_namespace_finalize(body, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :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. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_namespace_finalize`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_namespace_finalize`") all_params = ['body', 'name', 'pretty'] all_params.append('callback') params = 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_namespace_finalize" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{name}/finalize'.replace('{format}', 'json') method = 'PUT' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Namespace', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_namespace_status(self, body, name, **kwargs): """ replace 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.replace_namespaced_namespace_status(body, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :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. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_namespace_status`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_namespace_status`") all_params = ['body', 'name', 'pretty'] all_params.append('callback') params = 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_namespace_status" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/namespaces/{name}/status'.replace('{format}', 'json') method = 'PUT' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Namespace', auth_settings=auth_settings, callback=params.get('callback')) return response def list_namespaced_node(self, **kwargs): """ 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_namespaced_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1NodeList If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_node" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/nodes'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1NodeList', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_node(self, body, **kwargs): """ 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.create_namespaced_node(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Node 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. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_node`") all_params = ['body', 'pretty'] all_params.append('callback') params = 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_node" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/nodes'.replace('{format}', 'json') method = 'POST' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Node', auth_settings=auth_settings, callback=params.get('callback')) return response def deletecollection_namespaced_node(self, **kwargs): """ 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.deletecollection_namespaced_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method deletecollection_namespaced_node" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/nodes'.replace('{format}', 'json') method = 'DELETE' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_node(self, name, **kwargs): """ read 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.read_namespaced_node(name, callback=callback_function) :param callback function: The callback function 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 export: Should this value be exported. Export strips fields that a user can not specify. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1Node If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_node`") all_params = ['name', 'pretty', 'export', 'exact'] all_params.append('callback') params = 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_node" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/nodes/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'export' in params: query_params['export'] = params['export'] if 'exact' in params: query_params['exact'] = params['exact'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Node', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_node(self, body, name, **kwargs): """ replace 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.replace_namespaced_node(body, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Node body: (required) :param str name: name of the Node (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Node If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_node`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_node`") all_params = ['body', 'name', 'pretty'] all_params.append('callback') params = 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_node" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/nodes/{name}'.replace('{format}', 'json') method = 'PUT' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Node', auth_settings=auth_settings, callback=params.get('callback')) return response def delete_namespaced_node(self, body, name, **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_namespaced_node(body, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1DeleteOptions body: (required) :param str name: name of the Node (required) :param str pretty: If 'true', then the output is pretty printed. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_node`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_node`") all_params = ['body', 'name', 'pretty'] all_params.append('callback') params = 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_node" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/nodes/{name}'.replace('{format}', 'json') method = 'DELETE' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_node(self, body, name, **kwargs): """ 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.patch_namespaced_node(body, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str name: name of the Node (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Node If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_node`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_node`") all_params = ['body', 'name', 'pretty'] all_params.append('callback') params = 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_node" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/nodes/{name}'.replace('{format}', 'json') method = 'PATCH' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Node', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_get_namespaced_node_proxy(self, name, **kwargs): """ connect GET requests to proxy 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.connect_get_namespaced_node_proxy(name, 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 is the URL path to use for the current proxy request to node. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_node_proxy`") all_params = ['name', 'path'] all_params.append('callback') params = 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_get_namespaced_node_proxy" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/nodes/{name}/proxy'.replace('{format}', 'json') method = 'GET' path_params = {} if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_put_namespaced_node_proxy(self, name, **kwargs): """ connect PUT requests to proxy 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.connect_put_namespaced_node_proxy(name, 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 is the URL path to use for the current proxy request to node. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_node_proxy`") all_params = ['name', 'path'] all_params.append('callback') params = 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_put_namespaced_node_proxy" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/nodes/{name}/proxy'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_post_namespaced_node_proxy(self, name, **kwargs): """ connect POST requests to proxy 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.connect_post_namespaced_node_proxy(name, 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 is the URL path to use for the current proxy request to node. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_node_proxy`") all_params = ['name', 'path'] all_params.append('callback') params = 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_node_proxy" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/nodes/{name}/proxy'.replace('{format}', 'json') method = 'POST' path_params = {} if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_delete_namespaced_node_proxy(self, name, **kwargs): """ connect DELETE requests to proxy 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.connect_delete_namespaced_node_proxy(name, 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 is the URL path to use for the current proxy request to node. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_node_proxy`") all_params = ['name', 'path'] all_params.append('callback') params = 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_delete_namespaced_node_proxy" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/nodes/{name}/proxy'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_options_namespaced_node_proxy(self, name, **kwargs): """ connect OPTIONS requests to proxy 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.connect_options_namespaced_node_proxy(name, 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 is the URL path to use for the current proxy request to node. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_node_proxy`") all_params = ['name', 'path'] all_params.append('callback') params = 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_options_namespaced_node_proxy" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/nodes/{name}/proxy'.replace('{format}', 'json') method = 'OPTIONS' path_params = {} if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_get_namespaced_node_proxy_11(self, name, path, **kwargs): """ connect GET requests to proxy 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.connect_get_namespaced_node_proxy_11(name, path, 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) :param str path: Path is the URL path to use for the current proxy request to node. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_node_proxy_11`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `connect_get_namespaced_node_proxy_11`") all_params = ['name', 'path', 'path'] all_params.append('callback') params = 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_get_namespaced_node_proxy_11" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/nodes/{name}/proxy/{path}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_put_namespaced_node_proxy_12(self, name, path, **kwargs): """ connect PUT requests to proxy 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.connect_put_namespaced_node_proxy_12(name, path, 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) :param str path: Path is the URL path to use for the current proxy request to node. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_node_proxy_12`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `connect_put_namespaced_node_proxy_12`") all_params = ['name', 'path', 'path'] all_params.append('callback') params = 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_put_namespaced_node_proxy_12" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/nodes/{name}/proxy/{path}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_post_namespaced_node_proxy_13(self, name, path, **kwargs): """ connect POST requests to proxy 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.connect_post_namespaced_node_proxy_13(name, path, 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) :param str path: Path is the URL path to use for the current proxy request to node. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_node_proxy_13`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `connect_post_namespaced_node_proxy_13`") all_params = ['name', 'path', 'path'] all_params.append('callback') params = 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_node_proxy_13" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/nodes/{name}/proxy/{path}'.replace('{format}', 'json') method = 'POST' path_params = {} if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_delete_namespaced_node_proxy_14(self, name, path, **kwargs): """ connect DELETE requests to proxy 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.connect_delete_namespaced_node_proxy_14(name, path, 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) :param str path: Path is the URL path to use for the current proxy request to node. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_node_proxy_14`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `connect_delete_namespaced_node_proxy_14`") all_params = ['name', 'path', 'path'] all_params.append('callback') params = 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_delete_namespaced_node_proxy_14" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/nodes/{name}/proxy/{path}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def connect_options_namespaced_node_proxy_15(self, name, path, **kwargs): """ connect OPTIONS requests to proxy 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.connect_options_namespaced_node_proxy_15(name, path, 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) :param str path: Path is the URL path to use for the current proxy request to node. :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_node_proxy_15`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `connect_options_namespaced_node_proxy_15`") all_params = ['name', 'path', 'path'] all_params.append('callback') params = 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_options_namespaced_node_proxy_15" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/nodes/{name}/proxy/{path}'.replace('{format}', 'json') method = 'OPTIONS' path_params = {} if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} if 'path' in params: query_params['path'] = params['path'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_node_status(self, body, name, **kwargs): """ replace 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.replace_namespaced_node_status(body, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Node body: (required) :param str name: name of the Node (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Node If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_node_status`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_node_status`") all_params = ['body', 'name', 'pretty'] all_params.append('callback') params = 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_node_status" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/nodes/{name}/status'.replace('{format}', 'json') method = 'PUT' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Node', auth_settings=auth_settings, callback=params.get('callback')) return response def list_persistent_volume_claim(self, **kwargs): """ 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_persistent_volume_claim(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1PersistentVolumeClaimList If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_persistent_volume_claim" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/persistentvolumeclaims'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1PersistentVolumeClaimList', auth_settings=auth_settings, callback=params.get('callback')) return response def list_namespaced_persistent_volume(self, **kwargs): """ 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_namespaced_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1PersistentVolumeList If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_persistent_volume" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/persistentvolumes'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1PersistentVolumeList', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_persistent_volume(self, body, **kwargs): """ 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.create_namespaced_persistent_volume(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1PersistentVolume 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. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_persistent_volume`") all_params = ['body', 'pretty'] all_params.append('callback') params = 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_persistent_volume" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/persistentvolumes'.replace('{format}', 'json') method = 'POST' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1PersistentVolume', auth_settings=auth_settings, callback=params.get('callback')) return response def deletecollection_namespaced_persistent_volume(self, **kwargs): """ 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.deletecollection_namespaced_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method deletecollection_namespaced_persistent_volume" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/persistentvolumes'.replace('{format}', 'json') method = 'DELETE' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_persistent_volume(self, name, **kwargs): """ read 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.read_namespaced_persistent_volume(name, callback=callback_function) :param callback function: The callback function 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 export: Should this value be exported. Export strips fields that a user can not specify. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1PersistentVolume If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_persistent_volume`") all_params = ['name', 'pretty', 'export', 'exact'] all_params.append('callback') params = 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_persistent_volume" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/persistentvolumes/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'export' in params: query_params['export'] = params['export'] if 'exact' in params: query_params['exact'] = params['exact'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1PersistentVolume', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_persistent_volume(self, body, name, **kwargs): """ replace 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.replace_namespaced_persistent_volume(body, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1PersistentVolume body: (required) :param str name: name of the PersistentVolume (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PersistentVolume If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_persistent_volume`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_persistent_volume`") all_params = ['body', 'name', 'pretty'] all_params.append('callback') params = 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_persistent_volume" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/persistentvolumes/{name}'.replace('{format}', 'json') method = 'PUT' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1PersistentVolume', auth_settings=auth_settings, callback=params.get('callback')) return response def delete_namespaced_persistent_volume(self, body, name, **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_namespaced_persistent_volume(body, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1DeleteOptions body: (required) :param str name: name of the PersistentVolume (required) :param str pretty: If 'true', then the output is pretty printed. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_persistent_volume`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_persistent_volume`") all_params = ['body', 'name', 'pretty'] all_params.append('callback') params = 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" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/persistentvolumes/{name}'.replace('{format}', 'json') method = 'DELETE' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_persistent_volume(self, body, name, **kwargs): """ 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.patch_namespaced_persistent_volume(body, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str name: name of the PersistentVolume (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PersistentVolume If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_persistent_volume`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_persistent_volume`") all_params = ['body', 'name', 'pretty'] all_params.append('callback') params = 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_persistent_volume" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/persistentvolumes/{name}'.replace('{format}', 'json') method = 'PATCH' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1PersistentVolume', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_persistent_volume_status(self, body, name, **kwargs): """ replace 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.replace_namespaced_persistent_volume_status(body, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1PersistentVolume body: (required) :param str name: name of the PersistentVolume (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PersistentVolume If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_persistent_volume_status`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_persistent_volume_status`") all_params = ['body', 'name', 'pretty'] all_params.append('callback') params = 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_persistent_volume_status" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/persistentvolumes/{name}/status'.replace('{format}', 'json') method = 'PUT' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1PersistentVolume', auth_settings=auth_settings, callback=params.get('callback')) return response def list_pod(self, **kwargs): """ 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_pod(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1PodList If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/pods'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1PodList', auth_settings=auth_settings, callback=params.get('callback')) return response def list_pod_template(self, **kwargs): """ 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_pod_template(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1PodTemplateList If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_template" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/podtemplates'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1PodTemplateList', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_get_namespaced_pod(self, namespace, name, **kwargs): """ 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_get_namespaced_pod(namespace, name, 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 name: name of the Pod (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `proxy_get_namespaced_pod`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_get_namespaced_pod`") all_params = ['namespace', 'name'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_get_namespaced_pod" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_put_namespaced_pod(self, namespace, name, **kwargs): """ proxy PUT 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_put_namespaced_pod(namespace, name, 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 name: name of the Pod (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `proxy_put_namespaced_pod`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_put_namespaced_pod`") all_params = ['namespace', 'name'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_put_namespaced_pod" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_post_namespaced_pod(self, namespace, name, **kwargs): """ proxy POST 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_post_namespaced_pod(namespace, name, 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 name: name of the Pod (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `proxy_post_namespaced_pod`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_post_namespaced_pod`") all_params = ['namespace', 'name'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_post_namespaced_pod" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') method = 'POST' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_delete_namespaced_pod(self, namespace, name, **kwargs): """ 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_delete_namespaced_pod(namespace, name, 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 name: name of the Pod (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `proxy_delete_namespaced_pod`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_delete_namespaced_pod`") all_params = ['namespace', 'name'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_delete_namespaced_pod" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_options_namespaced_pod(self, namespace, name, **kwargs): """ 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_options_namespaced_pod(namespace, name, 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 name: name of the Pod (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `proxy_options_namespaced_pod`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_options_namespaced_pod`") all_params = ['namespace', 'name'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_options_namespaced_pod" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') method = 'OPTIONS' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_get_namespaced_pod_16(self, namespace, name, path, **kwargs): """ 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_get_namespaced_pod_16(namespace, name, path, 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 name: name of the Pod (required) :param str path: path to the resource (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `proxy_get_namespaced_pod_16`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_get_namespaced_pod_16`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `proxy_get_namespaced_pod_16`") all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_get_namespaced_pod_16" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_put_namespaced_pod_17(self, namespace, name, path, **kwargs): """ proxy PUT 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_put_namespaced_pod_17(namespace, name, path, 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 name: name of the Pod (required) :param str path: path to the resource (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `proxy_put_namespaced_pod_17`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_put_namespaced_pod_17`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `proxy_put_namespaced_pod_17`") all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_put_namespaced_pod_17" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_post_namespaced_pod_18(self, namespace, name, path, **kwargs): """ proxy POST 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_post_namespaced_pod_18(namespace, name, path, 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 name: name of the Pod (required) :param str path: path to the resource (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `proxy_post_namespaced_pod_18`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_post_namespaced_pod_18`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `proxy_post_namespaced_pod_18`") all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_post_namespaced_pod_18" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}'.replace('{format}', 'json') method = 'POST' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_delete_namespaced_pod_19(self, namespace, name, path, **kwargs): """ 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_delete_namespaced_pod_19(namespace, name, path, 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 name: name of the Pod (required) :param str path: path to the resource (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `proxy_delete_namespaced_pod_19`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_delete_namespaced_pod_19`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `proxy_delete_namespaced_pod_19`") all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_delete_namespaced_pod_19" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_options_namespaced_pod_20(self, namespace, name, path, **kwargs): """ 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_options_namespaced_pod_20(namespace, name, path, 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 name: name of the Pod (required) :param str path: path to the resource (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `proxy_options_namespaced_pod_20`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_options_namespaced_pod_20`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `proxy_options_namespaced_pod_20`") all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_options_namespaced_pod_20" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}'.replace('{format}', 'json') method = 'OPTIONS' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_get_namespaced_service(self, namespace, name, **kwargs): """ 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_get_namespaced_service(namespace, name, 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 name: name of the Service (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `proxy_get_namespaced_service`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_get_namespaced_service`") all_params = ['namespace', 'name'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_get_namespaced_service" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_put_namespaced_service(self, namespace, name, **kwargs): """ proxy PUT 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_put_namespaced_service(namespace, name, 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 name: name of the Service (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `proxy_put_namespaced_service`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_put_namespaced_service`") all_params = ['namespace', 'name'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_put_namespaced_service" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_post_namespaced_service(self, namespace, name, **kwargs): """ proxy POST 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_post_namespaced_service(namespace, name, 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 name: name of the Service (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `proxy_post_namespaced_service`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_post_namespaced_service`") all_params = ['namespace', 'name'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_post_namespaced_service" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') method = 'POST' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_delete_namespaced_service(self, namespace, name, **kwargs): """ 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_delete_namespaced_service(namespace, name, 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 name: name of the Service (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `proxy_delete_namespaced_service`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_delete_namespaced_service`") all_params = ['namespace', 'name'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_delete_namespaced_service" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_options_namespaced_service(self, namespace, name, **kwargs): """ 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_options_namespaced_service(namespace, name, 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 name: name of the Service (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `proxy_options_namespaced_service`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_options_namespaced_service`") all_params = ['namespace', 'name'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_options_namespaced_service" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') method = 'OPTIONS' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_get_namespaced_service_21(self, namespace, name, path, **kwargs): """ 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_get_namespaced_service_21(namespace, name, path, 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 name: name of the Service (required) :param str path: path to the resource (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `proxy_get_namespaced_service_21`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_get_namespaced_service_21`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `proxy_get_namespaced_service_21`") all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_get_namespaced_service_21" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_put_namespaced_service_22(self, namespace, name, path, **kwargs): """ proxy PUT 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_put_namespaced_service_22(namespace, name, path, 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 name: name of the Service (required) :param str path: path to the resource (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `proxy_put_namespaced_service_22`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_put_namespaced_service_22`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `proxy_put_namespaced_service_22`") all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_put_namespaced_service_22" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_post_namespaced_service_23(self, namespace, name, path, **kwargs): """ proxy POST 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_post_namespaced_service_23(namespace, name, path, 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 name: name of the Service (required) :param str path: path to the resource (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `proxy_post_namespaced_service_23`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_post_namespaced_service_23`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `proxy_post_namespaced_service_23`") all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_post_namespaced_service_23" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}'.replace('{format}', 'json') method = 'POST' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_delete_namespaced_service_24(self, namespace, name, path, **kwargs): """ 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_delete_namespaced_service_24(namespace, name, path, 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 name: name of the Service (required) :param str path: path to the resource (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `proxy_delete_namespaced_service_24`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_delete_namespaced_service_24`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `proxy_delete_namespaced_service_24`") all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_delete_namespaced_service_24" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_options_namespaced_service_25(self, namespace, name, path, **kwargs): """ 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_options_namespaced_service_25(namespace, name, path, 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 name: name of the Service (required) :param str path: path to the resource (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `proxy_options_namespaced_service_25`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_options_namespaced_service_25`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `proxy_options_namespaced_service_25`") all_params = ['namespace', 'name', 'path'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_options_namespaced_service_25" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}'.replace('{format}', 'json') method = 'OPTIONS' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_get_namespaced_node(self, name, **kwargs): """ 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_get_namespaced_node(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Node (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_get_namespaced_node`") all_params = ['name'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_get_namespaced_node" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/nodes/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'name' in params: path_params['name'] = params['name'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_put_namespaced_node(self, name, **kwargs): """ proxy PUT 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_put_namespaced_node(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Node (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_put_namespaced_node`") all_params = ['name'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_put_namespaced_node" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/nodes/{name}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'name' in params: path_params['name'] = params['name'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_post_namespaced_node(self, name, **kwargs): """ proxy POST 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_post_namespaced_node(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Node (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_post_namespaced_node`") all_params = ['name'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_post_namespaced_node" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/nodes/{name}'.replace('{format}', 'json') method = 'POST' path_params = {} if 'name' in params: path_params['name'] = params['name'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_delete_namespaced_node(self, name, **kwargs): """ 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_delete_namespaced_node(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Node (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_delete_namespaced_node`") all_params = ['name'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_delete_namespaced_node" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/nodes/{name}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'name' in params: path_params['name'] = params['name'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_options_namespaced_node(self, name, **kwargs): """ 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_options_namespaced_node(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Node (required) :return: str If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_options_namespaced_node`") all_params = ['name'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_options_namespaced_node" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/nodes/{name}'.replace('{format}', 'json') method = 'OPTIONS' path_params = {} if 'name' in params: path_params['name'] = params['name'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_get_namespaced_node_26(self, name, path, **kwargs): """ 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_get_namespaced_node_26(name, path, 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 If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_get_namespaced_node_26`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `proxy_get_namespaced_node_26`") all_params = ['name', 'path'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_get_namespaced_node_26" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/nodes/{name}/{path}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_put_namespaced_node_27(self, name, path, **kwargs): """ proxy PUT 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_put_namespaced_node_27(name, path, 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 If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_put_namespaced_node_27`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `proxy_put_namespaced_node_27`") all_params = ['name', 'path'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_put_namespaced_node_27" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/nodes/{name}/{path}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_post_namespaced_node_28(self, name, path, **kwargs): """ proxy POST 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_post_namespaced_node_28(name, path, 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 If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_post_namespaced_node_28`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `proxy_post_namespaced_node_28`") all_params = ['name', 'path'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_post_namespaced_node_28" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/nodes/{name}/{path}'.replace('{format}', 'json') method = 'POST' path_params = {} if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_delete_namespaced_node_29(self, name, path, **kwargs): """ 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_delete_namespaced_node_29(name, path, 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 If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_delete_namespaced_node_29`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `proxy_delete_namespaced_node_29`") all_params = ['name', 'path'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_delete_namespaced_node_29" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/nodes/{name}/{path}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def proxy_options_namespaced_node_30(self, name, path, **kwargs): """ 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_options_namespaced_node_30(name, path, 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 If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `proxy_options_namespaced_node_30`") # verify the required parameter 'path' is set if path is None: raise ValueError("Missing the required parameter `path` when calling `proxy_options_namespaced_node_30`") all_params = ['name', 'path'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method proxy_options_namespaced_node_30" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/proxy/nodes/{name}/{path}'.replace('{format}', 'json') method = 'OPTIONS' path_params = {} if 'name' in params: path_params['name'] = params['name'] if 'path' in params: path_params['path'] = params['path'] query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['*/*']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='str', auth_settings=auth_settings, callback=params.get('callback')) return response def list_replication_controller(self, **kwargs): """ 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_replication_controller(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1ReplicationControllerList If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_replication_controller" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/replicationcontrollers'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ReplicationControllerList', auth_settings=auth_settings, callback=params.get('callback')) return response def list_resource_quota(self, **kwargs): """ 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_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1ResourceQuotaList If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_resource_quota" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/resourcequotas'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ResourceQuotaList', auth_settings=auth_settings, callback=params.get('callback')) return response def list_secret(self, **kwargs): """ 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_secret(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1SecretList If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_secret" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/secrets'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1SecretList', auth_settings=auth_settings, callback=params.get('callback')) return response def list_service_account(self, **kwargs): """ 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_service_account(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1ServiceAccountList If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_service_account" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/serviceaccounts'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ServiceAccountList', auth_settings=auth_settings, callback=params.get('callback')) return response def list_service(self, **kwargs): """ 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_service(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1ServiceList If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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_service" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/services'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1ServiceList', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_config_map_list(self, **kwargs): """ watch individual changes to a list 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.watch_config_map_list(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_config_map_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/configmaps'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_endpoints_list(self, **kwargs): """ watch individual changes to a list 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.watch_endpoints_list(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_endpoints_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/endpoints'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_event_list(self, **kwargs): """ watch individual changes to a list 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.watch_event_list(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_event_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/events'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_limit_range_list(self, **kwargs): """ watch individual changes to a list 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.watch_limit_range_list(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_limit_range_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/limitranges'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_namespace_list(self, **kwargs): """ watch individual changes to a list 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.watch_namespaced_namespace_list(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_namespace_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_config_map_list(self, namespace, **kwargs): """ watch individual changes to a list 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.watch_namespaced_config_map_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_config_map_list`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_config_map_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/configmaps'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_config_map(self, namespace, name, **kwargs): """ watch changes to an object 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.watch_namespaced_config_map(namespace, name, 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 name: name of the ConfigMap (required) :param str pretty: If 'true', then the output is pretty printed. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_config_map`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_config_map`") all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_config_map" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/configmaps/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_endpoints_list(self, namespace, **kwargs): """ watch individual changes to a list 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.watch_namespaced_endpoints_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_endpoints_list`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_endpoints_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/endpoints'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_endpoints(self, namespace, name, **kwargs): """ watch changes to an object 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.watch_namespaced_endpoints(namespace, name, 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 name: name of the Endpoints (required) :param str pretty: If 'true', then the output is pretty printed. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_endpoints`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_endpoints`") all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_endpoints" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/endpoints/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_event_list(self, namespace, **kwargs): """ watch individual changes to a list 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.watch_namespaced_event_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_event_list`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_event_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/events'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_event(self, namespace, name, **kwargs): """ watch changes to an object 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.watch_namespaced_event(namespace, name, 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 name: name of the Event (required) :param str pretty: If 'true', then the output is pretty printed. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_event`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_event`") all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_event" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/events/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_limit_range_list(self, namespace, **kwargs): """ watch individual changes to a list 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.watch_namespaced_limit_range_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_limit_range_list`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_limit_range_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/limitranges'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_limit_range(self, namespace, name, **kwargs): """ watch changes to an object 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.watch_namespaced_limit_range(namespace, name, 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 name: name of the LimitRange (required) :param str pretty: If 'true', then the output is pretty printed. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_limit_range`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_limit_range`") all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_limit_range" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/limitranges/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_persistent_volume_claim_list(self, namespace, **kwargs): """ watch individual changes to a list 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.watch_namespaced_persistent_volume_claim_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_persistent_volume_claim_list`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_persistent_volume_claim_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_persistent_volume_claim(self, namespace, name, **kwargs): """ watch changes to an object 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.watch_namespaced_persistent_volume_claim(namespace, name, 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 name: name of the PersistentVolumeClaim (required) :param str pretty: If 'true', then the output is pretty printed. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_persistent_volume_claim`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_persistent_volume_claim`") all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_persistent_volume_claim" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_pod_list(self, namespace, **kwargs): """ watch individual changes to a list 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.watch_namespaced_pod_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_pod_list`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_pod_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/pods'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_pod(self, namespace, name, **kwargs): """ watch changes to an object 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.watch_namespaced_pod(namespace, name, 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 name: name of the Pod (required) :param str pretty: If 'true', then the output is pretty printed. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_pod`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_pod`") all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_pod" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_pod_template_list(self, namespace, **kwargs): """ watch individual changes to a list 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.watch_namespaced_pod_template_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_pod_template_list`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_pod_template_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/podtemplates'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_pod_template(self, namespace, name, **kwargs): """ watch changes to an object 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.watch_namespaced_pod_template(namespace, name, 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 name: name of the PodTemplate (required) :param str pretty: If 'true', then the output is pretty printed. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_pod_template`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_pod_template`") all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_pod_template" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/podtemplates/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_replication_controller_list(self, namespace, **kwargs): """ watch individual changes to a list 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.watch_namespaced_replication_controller_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_replication_controller_list`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_replication_controller_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/replicationcontrollers'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_replication_controller(self, namespace, name, **kwargs): """ watch changes to an object 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.watch_namespaced_replication_controller(namespace, name, 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 name: name of the ReplicationController (required) :param str pretty: If 'true', then the output is pretty printed. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_replication_controller`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_replication_controller`") all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_replication_controller" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_resource_quota_list(self, namespace, **kwargs): """ watch individual changes to a list 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.watch_namespaced_resource_quota_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_resource_quota_list`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_resource_quota_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/resourcequotas'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_resource_quota(self, namespace, name, **kwargs): """ watch changes to an object 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.watch_namespaced_resource_quota(namespace, name, 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 name: name of the ResourceQuota (required) :param str pretty: If 'true', then the output is pretty printed. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_resource_quota`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_resource_quota`") all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_resource_quota" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/resourcequotas/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_secret_list(self, namespace, **kwargs): """ watch individual changes to a list 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.watch_namespaced_secret_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_secret_list`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_secret_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/secrets'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_secret(self, namespace, name, **kwargs): """ watch changes to an object 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.watch_namespaced_secret(namespace, name, 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 name: name of the Secret (required) :param str pretty: If 'true', then the output is pretty printed. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_secret`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_secret`") all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_secret" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/secrets/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_service_account_list(self, namespace, **kwargs): """ watch individual changes to a list 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.watch_namespaced_service_account_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_service_account_list`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_service_account_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/serviceaccounts'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_service_account(self, namespace, name, **kwargs): """ watch changes to an object 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.watch_namespaced_service_account(namespace, name, 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 name: name of the ServiceAccount (required) :param str pretty: If 'true', then the output is pretty printed. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_service_account`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_service_account`") all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_service_account" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/serviceaccounts/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_service_list(self, namespace, **kwargs): """ watch individual changes to a list of 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.watch_namespaced_service_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_service_list`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_service_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/services'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_service(self, namespace, name, **kwargs): """ watch changes to an object 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.watch_namespaced_service(namespace, name, 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 name: name of the Service (required) :param str pretty: If 'true', then the output is pretty printed. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_service`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_service`") all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_service" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_namespace(self, name, **kwargs): """ watch changes to an object 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.watch_namespaced_namespace(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Namespace (required) :param str pretty: If 'true', then the output is pretty printed. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_namespace`") all_params = ['name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_namespace" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/namespaces/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_node_list(self, **kwargs): """ watch individual changes to a list 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.watch_namespaced_node_list(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_node_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/nodes'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_node(self, name, **kwargs): """ watch changes to an object 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.watch_namespaced_node(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Node (required) :param str pretty: If 'true', then the output is pretty printed. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_node`") all_params = ['name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_node" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/nodes/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_persistent_volume_claim_list(self, **kwargs): """ watch individual changes to a list 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.watch_persistent_volume_claim_list(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_persistent_volume_claim_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/persistentvolumeclaims'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_persistent_volume_list(self, **kwargs): """ watch individual changes to a list 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.watch_namespaced_persistent_volume_list(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_persistent_volume_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/persistentvolumes'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_persistent_volume(self, name, **kwargs): """ watch changes to an object 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.watch_namespaced_persistent_volume(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the PersistentVolume (required) :param str pretty: If 'true', then the output is pretty printed. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_persistent_volume`") all_params = ['name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_persistent_volume" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/persistentvolumes/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_pod_list(self, **kwargs): """ watch individual changes to a list 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.watch_pod_list(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_pod_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/pods'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_pod_template_list(self, **kwargs): """ watch individual changes to a list 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.watch_pod_template_list(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_pod_template_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/podtemplates'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_replication_controller_list(self, **kwargs): """ watch individual changes to a list 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.watch_replication_controller_list(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_replication_controller_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/replicationcontrollers'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_resource_quota_list(self, **kwargs): """ watch individual changes to a list 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.watch_resource_quota_list(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_resource_quota_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/resourcequotas'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_secret_list(self, **kwargs): """ watch individual changes to a list 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.watch_secret_list(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_secret_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/secrets'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_service_account_list(self, **kwargs): """ watch individual changes to a list 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.watch_service_account_list(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_service_account_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/serviceaccounts'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_service_list(self, **kwargs): """ watch individual changes to a list of 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.watch_service_list(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_service_list" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v1/watch/services'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response python-k8sclient-0.4.0/k8sclient/client/apis/apisbatchv_api.py0000664000567000056710000014607213046233226025557 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ ApisbatchvApi.py Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from __future__ import absolute_import import sys import os # python 2 and python 3 compatibility library from six import iteritems from ..configuration import Configuration from ..api_client import ApiClient class ApisbatchvApi(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ 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('https://127.0.0.1:443/') self.api_client = config.api_client 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: None If the method is called asynchronously, returns the request thread. """ all_params = [] all_params.append('callback') params = 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'] resource_path = '/apis/batch/v1'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response def list_job(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(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1JobList If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/batch/v1/jobs'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1JobList', auth_settings=auth_settings, callback=params.get('callback')) return response 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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1JobList If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_job`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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'] resource_path = '/apis/batch/v1/namespaces/{namespace}/jobs'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1JobList', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_job(self, body, namespace, **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_namespaced_job(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Job 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: V1Job If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_job`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_job`") all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') params = 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_job" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/batch/v1/namespaces/{namespace}/jobs'.replace('{format}', 'json') method = 'POST' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Job', auth_settings=auth_settings, callback=params.get('callback')) return response def deletecollection_namespaced_job(self, namespace, **kwargs): """ 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.deletecollection_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_job`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method deletecollection_namespaced_job" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/batch/v1/namespaces/{namespace}/jobs'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_job(self, namespace, name, **kwargs): """ 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_job(namespace, name, 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 name: name of the Job (required) :param str pretty: If 'true', then the output is pretty printed. :param bool export: Should this value be exported. Export strips fields that a user can not specify. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1Job If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_job`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_job`") all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = 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_job" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'export' in params: query_params['export'] = params['export'] if 'exact' in params: query_params['exact'] = params['exact'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Job', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_job(self, body, namespace, name, **kwargs): """ 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_job(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Job body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Job (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Job If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_job`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_job`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_job`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_job" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Job', auth_settings=auth_settings, callback=params.get('callback')) return response def delete_namespaced_job(self, body, namespace, name, **kwargs): """ 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.delete_namespaced_job(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1DeleteOptions body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Job (required) :param str pretty: If 'true', then the output is pretty printed. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_job`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_job`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_job`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_job" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_job(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Job (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Job If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_job`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_job`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_job`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') method = 'PATCH' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Job', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_job_status(self, body, namespace, name, **kwargs): """ 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_job_status(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Job body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Job (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Job If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_job_status`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_job_status`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_job_status`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_job_status" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1Job', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_job_list(self, **kwargs): """ watch individual changes to a list 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.watch_job_list(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_job_list" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/batch/v1/watch/jobs'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_job_list(self, namespace, **kwargs): """ watch individual changes to a list 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.watch_namespaced_job_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_job_list`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_job_list" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/batch/v1/watch/namespaces/{namespace}/jobs'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_job(self, namespace, name, **kwargs): """ watch changes to an object 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.watch_namespaced_job(namespace, name, 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 name: name of the Job (required) :param str pretty: If 'true', then the output is pretty printed. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_job`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_job`") all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_job" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response python-k8sclient-0.4.0/k8sclient/client/apis/apisextensionsvbeta_api.py0000664000567000056710000122604713046233226027533 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ ApisextensionsvbetaApi.py Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from __future__ import absolute_import import sys import os # python 2 and python 3 compatibility library from six import iteritems from ..configuration import Configuration from ..api_client import ApiClient class ApisextensionsvbetaApi(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ 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('https://127.0.0.1:443/') self.api_client = config.api_client 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: None If the method is called asynchronously, returns the request thread. """ all_params = [] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response def list_daemon_set(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(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1beta1DaemonSetList If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/daemonsets'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1DaemonSetList', auth_settings=auth_settings, callback=params.get('callback')) return response def list_deployment(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(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1beta1DeploymentList If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/deployments'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1DeploymentList', auth_settings=auth_settings, callback=params.get('callback')) return response def list_horizontal_pod_autoscaler(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(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1beta1HorizontalPodAutoscalerList If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/horizontalpodautoscalers'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1HorizontalPodAutoscalerList', auth_settings=auth_settings, callback=params.get('callback')) return response def list_ingress(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(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1beta1IngressList If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/ingresses'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1IngressList', auth_settings=auth_settings, callback=params.get('callback')) return response def list_job(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(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1beta1JobList If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/jobs'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1JobList', auth_settings=auth_settings, callback=params.get('callback')) return response 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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1beta1DaemonSetList If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_daemon_set`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1DaemonSetList', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_daemon_set(self, body, namespace, **kwargs): """ 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_daemon_set(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1DaemonSet 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: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_daemon_set`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_daemon_set`") all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') params = 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_daemon_set" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets'.replace('{format}', 'json') method = 'POST' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1DaemonSet', auth_settings=auth_settings, callback=params.get('callback')) return response def deletecollection_namespaced_daemon_set(self, namespace, **kwargs): """ 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.deletecollection_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_daemon_set`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method deletecollection_namespaced_daemon_set" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_daemon_set(self, namespace, name, **kwargs): """ 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.read_namespaced_daemon_set(namespace, name, 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 name: name of the DaemonSet (required) :param str pretty: If 'true', then the output is pretty printed. :param bool export: Should this value be exported. Export strips fields that a user can not specify. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set`") all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = 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_daemon_set" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'export' in params: query_params['export'] = params['export'] if 'exact' in params: query_params['exact'] = params['exact'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1DaemonSet', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_daemon_set(self, body, namespace, name, **kwargs): """ 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.replace_namespaced_daemon_set(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1DaemonSet body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the DaemonSet (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_daemon_set" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1DaemonSet', auth_settings=auth_settings, callback=params.get('callback')) return response def delete_namespaced_daemon_set(self, body, namespace, name, **kwargs): """ 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.delete_namespaced_daemon_set(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1DeleteOptions body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the DaemonSet (required) :param str pretty: If 'true', then the output is pretty printed. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_daemon_set`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_daemon_set`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_daemon_set`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_daemon_set" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_daemon_set(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the DaemonSet (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}'.replace('{format}', 'json') method = 'PATCH' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1DaemonSet', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_daemon_set_status(self, body, namespace, name, **kwargs): """ 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.replace_namespaced_daemon_set_status(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1DaemonSet body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the DaemonSet (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set_status`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set_status`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set_status`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_daemon_set_status" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1DaemonSet', auth_settings=auth_settings, callback=params.get('callback')) return response 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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1beta1DeploymentList If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_deployment`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1DeploymentList', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_deployment(self, body, namespace, **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(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1Deployment 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: V1beta1Deployment If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment`") all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments'.replace('{format}', 'json') method = 'POST' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Deployment', auth_settings=auth_settings, callback=params.get('callback')) return response def deletecollection_namespaced_deployment(self, namespace, **kwargs): """ 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.deletecollection_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_deployment`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method deletecollection_namespaced_deployment" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_deployment(self, namespace, name, **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(namespace, name, 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 name: name of the Deployment (required) :param str pretty: If 'true', then the output is pretty printed. :param bool export: Should this value be exported. Export strips fields that a user can not specify. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1beta1Deployment If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment`") all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'export' in params: query_params['export'] = params['export'] if 'exact' in params: query_params['exact'] = params['exact'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Deployment', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_deployment(self, body, namespace, name, **kwargs): """ 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.replace_namespaced_deployment(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1Deployment body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Deployment (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Deployment If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Deployment', auth_settings=auth_settings, callback=params.get('callback')) return response def delete_namespaced_deployment(self, body, namespace, name, **kwargs): """ 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.delete_namespaced_deployment(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1DeleteOptions body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Deployment (required) :param str pretty: If 'true', then the output is pretty printed. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_deployment`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_deployment`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_deployment`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_deployment(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Deployment (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Deployment If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') method = 'PATCH' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Deployment', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_deployment_rollback_rollback(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1DeploymentRollback body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the DeploymentRollback (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1DeploymentRollback If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment_rollback_rollback`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment_rollback_rollback`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `create_namespaced_deployment_rollback_rollback`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback'.replace('{format}', 'json') method = 'POST' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1DeploymentRollback', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_scale_scale(self, namespace, name, **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(namespace, name, 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 name: name of the Scale (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_scale_scale`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_scale_scale`") all_params = ['namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Scale', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_scale_scale(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1Scale body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Scale (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_scale_scale`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_scale_scale`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_scale_scale`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Scale', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_scale_scale(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Scale (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_scale_scale`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_scale_scale`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_scale_scale`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale'.replace('{format}', 'json') method = 'PATCH' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Scale', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_deployment_status(self, body, namespace, name, **kwargs): """ 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.replace_namespaced_deployment_status(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1Deployment body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Deployment (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Deployment If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_status`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_status`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_status`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_status" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Deployment', auth_settings=auth_settings, callback=params.get('callback')) return response 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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1beta1HorizontalPodAutoscalerList If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_horizontal_pod_autoscaler`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1HorizontalPodAutoscalerList', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_horizontal_pod_autoscaler(self, body, namespace, **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(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1HorizontalPodAutoscaler 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: V1beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_horizontal_pod_autoscaler`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_horizontal_pod_autoscaler`") all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers'.replace('{format}', 'json') method = 'POST' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1HorizontalPodAutoscaler', auth_settings=auth_settings, callback=params.get('callback')) return response def deletecollection_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.deletecollection_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_horizontal_pod_autoscaler`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method deletecollection_namespaced_horizontal_pod_autoscaler" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_horizontal_pod_autoscaler(self, namespace, name, **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(namespace, name, 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 name: name of the HorizontalPodAutoscaler (required) :param str pretty: If 'true', then the output is pretty printed. :param bool export: Should this value be exported. Export strips fields that a user can not specify. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler`") all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'export' in params: query_params['export'] = params['export'] if 'exact' in params: query_params['exact'] = params['exact'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1HorizontalPodAutoscaler', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_horizontal_pod_autoscaler(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1HorizontalPodAutoscaler body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the HorizontalPodAutoscaler (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1HorizontalPodAutoscaler', auth_settings=auth_settings, callback=params.get('callback')) return response def delete_namespaced_horizontal_pod_autoscaler(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1DeleteOptions body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the HorizontalPodAutoscaler (required) :param str pretty: If 'true', then the output is pretty printed. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_horizontal_pod_autoscaler`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_horizontal_pod_autoscaler`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_horizontal_pod_autoscaler`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_horizontal_pod_autoscaler(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the HorizontalPodAutoscaler (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') method = 'PATCH' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1HorizontalPodAutoscaler', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_horizontal_pod_autoscaler_status(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1HorizontalPodAutoscaler body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the HorizontalPodAutoscaler (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1HorizontalPodAutoscaler', auth_settings=auth_settings, callback=params.get('callback')) return response 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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1beta1IngressList If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_ingress`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1IngressList', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_ingress(self, body, namespace, **kwargs): """ create a 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.create_namespaced_ingress(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1Ingress 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: V1beta1Ingress If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_ingress`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_ingress`") all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') params = 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_ingress" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses'.replace('{format}', 'json') method = 'POST' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Ingress', auth_settings=auth_settings, callback=params.get('callback')) return response def deletecollection_namespaced_ingress(self, namespace, **kwargs): """ 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.deletecollection_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_ingress`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method deletecollection_namespaced_ingress" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_ingress(self, namespace, name, **kwargs): """ 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.read_namespaced_ingress(namespace, name, 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 name: name of the Ingress (required) :param str pretty: If 'true', then the output is pretty printed. :param bool export: Should this value be exported. Export strips fields that a user can not specify. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1beta1Ingress If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_ingress`") all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = 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_ingress" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'export' in params: query_params['export'] = params['export'] if 'exact' in params: query_params['exact'] = params['exact'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Ingress', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_ingress(self, body, namespace, name, **kwargs): """ 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_ingress(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1Ingress body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Ingress (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Ingress If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_ingress" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Ingress', auth_settings=auth_settings, callback=params.get('callback')) return response def delete_namespaced_ingress(self, body, namespace, name, **kwargs): """ delete a 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_namespaced_ingress(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1DeleteOptions body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Ingress (required) :param str pretty: If 'true', then the output is pretty printed. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_ingress`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_ingress`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_ingress`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_ingress" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_ingress(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Ingress (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Ingress If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_ingress`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_ingress`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') method = 'PATCH' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Ingress', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_ingress_status(self, body, namespace, name, **kwargs): """ 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_ingress_status(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1Ingress body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Ingress (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Ingress If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress_status`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress_status`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress_status`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_ingress_status" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Ingress', auth_settings=auth_settings, callback=params.get('callback')) return response 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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1beta1JobList If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_job`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1JobList', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_job(self, body, namespace, **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_namespaced_job(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1Job 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: V1beta1Job If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_job`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_job`") all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') params = 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_job" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs'.replace('{format}', 'json') method = 'POST' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Job', auth_settings=auth_settings, callback=params.get('callback')) return response def deletecollection_namespaced_job(self, namespace, **kwargs): """ 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.deletecollection_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_job`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method deletecollection_namespaced_job" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_job(self, namespace, name, **kwargs): """ 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_job(namespace, name, 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 name: name of the Job (required) :param str pretty: If 'true', then the output is pretty printed. :param bool export: Should this value be exported. Export strips fields that a user can not specify. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1beta1Job If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_job`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_job`") all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = 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_job" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'export' in params: query_params['export'] = params['export'] if 'exact' in params: query_params['exact'] = params['exact'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Job', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_job(self, body, namespace, name, **kwargs): """ 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_job(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1Job body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Job (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Job If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_job`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_job`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_job`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_job" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Job', auth_settings=auth_settings, callback=params.get('callback')) return response def delete_namespaced_job(self, body, namespace, name, **kwargs): """ 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.delete_namespaced_job(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1DeleteOptions body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Job (required) :param str pretty: If 'true', then the output is pretty printed. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_job`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_job`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_job`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_job" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_job(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Job (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Job If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_job`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_job`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_job`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') method = 'PATCH' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Job', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_job_status(self, body, namespace, name, **kwargs): """ 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_job_status(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1Job body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Job (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Job If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_job_status`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_job_status`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_job_status`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_job_status" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Job', auth_settings=auth_settings, callback=params.get('callback')) return response 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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1beta1ReplicaSetList If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_replica_set`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1ReplicaSetList', auth_settings=auth_settings, callback=params.get('callback')) return response def create_namespaced_replica_set(self, body, namespace, **kwargs): """ 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.create_namespaced_replica_set(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1ReplicaSet 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: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `create_namespaced_replica_set`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_replica_set`") all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') params = 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_replica_set" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets'.replace('{format}', 'json') method = 'POST' 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 = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1ReplicaSet', auth_settings=auth_settings, callback=params.get('callback')) return response def deletecollection_namespaced_replica_set(self, namespace, **kwargs): """ 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.deletecollection_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `deletecollection_namespaced_replica_set`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method deletecollection_namespaced_replica_set" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_replica_set(self, namespace, name, **kwargs): """ 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_replica_set(namespace, name, 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 name: name of the ReplicaSet (required) :param str pretty: If 'true', then the output is pretty printed. :param bool export: Should this value be exported. Export strips fields that a user can not specify. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace' :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set`") all_params = ['namespace', 'name', 'pretty', 'export', 'exact'] all_params.append('callback') params = 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_replica_set" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'export' in params: query_params['export'] = params['export'] if 'exact' in params: query_params['exact'] = params['exact'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1ReplicaSet', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_replica_set(self, body, namespace, name, **kwargs): """ replace 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.replace_namespaced_replica_set(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1ReplicaSet body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ReplicaSet (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_replica_set" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1ReplicaSet', auth_settings=auth_settings, callback=params.get('callback')) return response def delete_namespaced_replica_set(self, body, namespace, name, **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(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1DeleteOptions body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ReplicaSet (required) :param str pretty: If 'true', then the output is pretty printed. :return: UnversionedStatus If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_replica_set`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replica_set`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_replica_set`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}'.replace('{format}', 'json') method = 'DELETE' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='UnversionedStatus', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_replica_set(self, body, namespace, name, **kwargs): """ 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_replica_set(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ReplicaSet (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_replica_set" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}'.replace('{format}', 'json') method = 'PATCH' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1ReplicaSet', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_scale_scale_1(self, namespace, name, **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_1(namespace, name, 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 name: name of the Scale (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_scale_scale_1`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_scale_scale_1`") all_params = ['namespace', 'name', 'pretty'] all_params.append('callback') params = 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_1" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Scale', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_scale_scale_2(self, body, namespace, name, **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_2(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1Scale body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Scale (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_scale_scale_2`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_scale_scale_2`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_scale_scale_2`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_2" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Scale', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_scale_scale_3(self, body, namespace, name, **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_3(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Scale (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_scale_scale_3`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_scale_scale_3`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_scale_scale_3`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_3" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale'.replace('{format}', 'json') method = 'PATCH' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Scale', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_replica_set_status(self, body, namespace, name, **kwargs): """ replace 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.replace_namespaced_replica_set_status(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1ReplicaSet body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the ReplicaSet (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_status`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_status`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_status`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_replica_set_status" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1ReplicaSet', auth_settings=auth_settings, callback=params.get('callback')) return response def read_namespaced_scale_scale_4(self, namespace, name, **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_4(namespace, name, 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 name: name of the Scale (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_scale_scale_4`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `read_namespaced_scale_scale_4`") all_params = ['namespace', 'name', 'pretty'] all_params.append('callback') params = 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_4" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Scale', auth_settings=auth_settings, callback=params.get('callback')) return response def replace_namespaced_scale_scale_5(self, body, namespace, name, **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_5(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1beta1Scale body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Scale (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_scale_scale_5`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_scale_scale_5`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_scale_scale_5`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_5" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') method = 'PUT' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Scale', auth_settings=auth_settings, callback=params.get('callback')) return response def patch_namespaced_scale_scale_6(self, body, namespace, name, **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_6(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param UnversionedPatch body: (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str name: name of the Scale (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Scale If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'body' is set if body is None: raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_scale_scale_6`") # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_scale_scale_6`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_scale_scale_6`") all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') params = 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_6" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') method = 'PATCH' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] header_params = {} form_params = {} files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # 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 = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1Scale', auth_settings=auth_settings, callback=params.get('callback')) return response def list_replica_set(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(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: V1beta1ReplicaSetList If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = 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" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/replicasets'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='V1beta1ReplicaSetList', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_daemon_set_list(self, **kwargs): """ watch individual changes to a list 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.watch_daemon_set_list(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_daemon_set_list" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/watch/daemonsets'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_deployment_list(self, **kwargs): """ watch individual changes to a list 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.watch_deployment_list(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_deployment_list" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/watch/deployments'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_horizontal_pod_autoscaler_list(self, **kwargs): """ watch individual changes to a list 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.watch_horizontal_pod_autoscaler_list(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_horizontal_pod_autoscaler_list" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/watch/horizontalpodautoscalers'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_ingress_list(self, **kwargs): """ watch individual changes to a list 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.watch_ingress_list(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_ingress_list" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/watch/ingresses'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_job_list(self, **kwargs): """ watch individual changes to a list 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.watch_job_list(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_job_list" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/watch/jobs'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_daemon_set_list(self, namespace, **kwargs): """ watch individual changes to a list 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.watch_namespaced_daemon_set_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_daemon_set_list`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_daemon_set_list" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_daemon_set(self, namespace, name, **kwargs): """ watch changes to an object 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.watch_namespaced_daemon_set(namespace, name, 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 name: name of the DaemonSet (required) :param str pretty: If 'true', then the output is pretty printed. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_daemon_set`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_daemon_set`") all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_daemon_set" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_deployment_list(self, namespace, **kwargs): """ watch individual changes to a list 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.watch_namespaced_deployment_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_deployment_list`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_deployment_list" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_deployment(self, namespace, name, **kwargs): """ watch changes to an object 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.watch_namespaced_deployment(namespace, name, 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 name: name of the Deployment (required) :param str pretty: If 'true', then the output is pretty printed. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_deployment`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_deployment`") all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_deployment" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_horizontal_pod_autoscaler_list(self, namespace, **kwargs): """ watch individual changes to a list 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.watch_namespaced_horizontal_pod_autoscaler_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_horizontal_pod_autoscaler_list`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_horizontal_pod_autoscaler_list" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_horizontal_pod_autoscaler(self, namespace, name, **kwargs): """ watch changes to an object 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.watch_namespaced_horizontal_pod_autoscaler(namespace, name, 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 name: name of the HorizontalPodAutoscaler (required) :param str pretty: If 'true', then the output is pretty printed. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_horizontal_pod_autoscaler`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_horizontal_pod_autoscaler`") all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_horizontal_pod_autoscaler" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_ingress_list(self, namespace, **kwargs): """ watch individual changes to a list 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.watch_namespaced_ingress_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_ingress_list`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_ingress_list" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_ingress(self, namespace, name, **kwargs): """ watch changes to an object 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.watch_namespaced_ingress(namespace, name, 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 name: name of the Ingress (required) :param str pretty: If 'true', then the output is pretty printed. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_ingress`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_ingress`") all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_ingress" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_job_list(self, namespace, **kwargs): """ watch individual changes to a list 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.watch_namespaced_job_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_job_list`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_job_list" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_job(self, namespace, name, **kwargs): """ watch changes to an object 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.watch_namespaced_job(namespace, name, 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 name: name of the Job (required) :param str pretty: If 'true', then the output is pretty printed. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_job`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_job`") all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_job" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_replica_set_list(self, namespace, **kwargs): """ watch individual changes to a list 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.watch_namespaced_replica_set_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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_replica_set_list`") all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_replica_set_list" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_namespaced_replica_set(self, namespace, name, **kwargs): """ watch changes to an object 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.watch_namespaced_replica_set(namespace, name, 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 name: name of the ReplicaSet (required) :param str pretty: If 'true', then the output is pretty printed. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ # verify the required parameter 'namespace' is set if namespace is None: raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_replica_set`") # verify the required parameter 'name' is set if name is None: raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_replica_set`") all_params = ['namespace', 'name', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_namespaced_replica_set" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets/{name}'.replace('{format}', 'json') method = 'GET' path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response def watch_replica_set_list(self, **kwargs): """ watch individual changes to a list 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.watch_replica_set_list(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 label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: Timeout for the list/watch call. :return: JsonWatchEvent If the method is called asynchronously, returns the request thread. """ all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method watch_replica_set_list" % key ) params[key] = val del params['kwargs'] resource_path = '/apis/extensions/v1beta1/watch/replicasets'.replace('{format}', 'json') method = 'GET' path_params = {} query_params = {} if 'pretty' in params: query_params['pretty'] = params['pretty'] if 'label_selector' in params: query_params['labelSelector'] = params['label_selector'] if 'field_selector' in params: query_params['fieldSelector'] = params['field_selector'] if 'watch' in params: query_params['watch'] = params['watch'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: query_params['timeoutSeconds'] = params['timeout_seconds'] header_params = {} form_params = {} files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['*/*']) # Authentication setting auth_settings = [] response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response_type='JsonWatchEvent', auth_settings=auth_settings, callback=params.get('callback')) return response python-k8sclient-0.4.0/k8sclient/client/rest.py0000664000567000056710000002310213046233226022607 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Credit: this file (rest.py) is modified based on rest.py in Dropbox Python SDK: https://www.dropbox.com/developers/core/sdks/python """ import sys import io import json import ssl import logging # python 2 and python 3 compatibility library from six import iteritems try: import urllib3 except ImportError: raise ImportError('Swagger python client requires urllib3.') try: # for python3 from urllib.parse import urlencode except ImportError: # for python2 from urllib import urlencode logger = logging.getLogger(__name__) class RESTResponse(io.IOBase): def __init__(self, resp): self.urllib3_response = resp self.status = resp.status self.reason = resp.reason self.data = resp.data def getheaders(self): """ Returns a dictionary of the response headers. """ return self.urllib3_response.getheaders() def getheader(self, name, default=None): """ Returns a given response header. """ return self.urllib3_response.getheader(name, default) class RESTClientObject(object): def __init__(self, pools_size=4, key_file=None, cert_file=None, ca_certs=None): # http pool manager self.pool_manager = urllib3.PoolManager( num_pools=pools_size ) # NOTE(dims): Changing the behavior to accept security param if ca_certs is None: ca_certs = '/etc/ssl/certs/ca-certificates.crt' self.ssl_pool_manager = urllib3.PoolManager( num_pools=pools_size, key_file=key_file, cert_file=cert_file, cert_reqs=ssl.CERT_REQUIRED, ca_certs=ca_certs, assert_hostname=False) def agent(self, url): """ Use `urllib3.util.parse_url` for backward compatibility. Return proper pool manager for the http/https schemes. """ url = urllib3.util.parse_url(url) scheme = url.scheme if scheme == 'https': return self.ssl_pool_manager else: return self.pool_manager def request(self, method, url, query_params=None, headers=None, body=None, post_params=None): """ :param method: http request method :param url: http request url :param query_params: query parameters in the url :param headers: http request headers :param body: request json body, for `application/json` :param post_params: request post parameters, `application/x-www-form-urlencode` and `multipart/form-data` """ method = method.upper() assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', 'PATCH'] if post_params and body: raise ValueError( "body parameter cannot be used with post_params parameter." ) post_params = post_params or {} headers = headers or {} if 'Content-Type' not in headers: headers['Content-Type'] = 'application/json' # For `POST`, `PUT`, `PATCH` if method in ['POST', 'PUT', 'PATCH']: if query_params: url += '?' + urlencode(query_params) if headers['Content-Type'] == 'application/json-patch+json': headers['Content-Type'] = 'application/strategic-merge-patch+json' r = self.agent(url).request(method, url, body=json.dumps(body), headers=headers) if headers['Content-Type'] == 'application/json': r = self.agent(url).request(method, url, body=json.dumps(body), headers=headers) if headers['Content-Type'] == 'application/x-www-form-urlencoded': r = self.agent(url).request(method, url, fields=post_params, encode_multipart=False, headers=headers) if headers['Content-Type'] == 'multipart/form-data': # must del headers['Content-Type'], or the correct Content-Type # which generated by urllib3 will be overwritten. del headers['Content-Type'] r = self.agent(url).request(method, url, fields=post_params, encode_multipart=True, headers=headers) # For `GET`, `HEAD`, `DELETE` else: r = self.agent(url).request(method, url, fields=query_params, headers=headers) r = RESTResponse(r) # In the python 3, the response.data is bytes. # we need to decode it to string. if sys.version_info > (3,): r.data = r.data.decode('utf8') # log response body logger.debug("response body: %s" % r.data) if r.status not in range(200, 206): raise ApiException(http_resp=r) return r def GET(self, url, headers=None, query_params=None): return self.request("GET", url, headers=headers, query_params=query_params) def HEAD(self, url, headers=None, query_params=None): return self.request("HEAD", url, headers=headers, query_params=query_params) def DELETE(self, url, headers=None, query_params=None): return self.request("DELETE", url, headers=headers, query_params=query_params) def POST(self, url, headers=None, query_params=None, post_params=None, body=None): return self.request("POST", url, headers=headers, query_params=query_params, post_params=post_params, body=body) def PUT(self, url, headers=None, query_params=None, post_params=None, body=None): return self.request("PUT", url, headers=headers, query_params=query_params, post_params=post_params, body=body) def PATCH(self, url, headers=None, query_params=None, post_params=None, body=None): return self.request("PATCH", url, headers=headers, query_params=query_params, post_params=post_params, body=body) class ApiException(Exception): def __init__(self, status=None, reason=None, http_resp=None): if http_resp: self.status = http_resp.status self.reason = http_resp.reason self.body = http_resp.data self.headers = http_resp.getheaders() else: self.status = status self.reason = reason self.body = None self.headers = None def __str__(self): """ Custom error messages for exception """ error_message = "({0})\n"\ "Reason: {1}\n".format(self.status, self.reason) if self.headers: error_message += "HTTP response headers: {0}\n".format(self.headers) if self.body: error_message += "HTTP response body: {0}\n".format(self.body) return error_message class RESTClient(object): """ A class with methods to perform JSON requests. """ def __init__(self, key_file=None, cert_file=None, ca_certs=None): self.IMPL = RESTClientObject(key_file=key_file, cert_file=cert_file, ca_certs=ca_certs) def request(self, *n, **kw): """ Perform a REST request and parse the response. """ return self.IMPL.request(*n, **kw) def GET(self, *n, **kw): """ Perform a GET request using `RESTClient.request()`. """ return self.IMPL.GET(*n, **kw) def HEAD(self, *n, **kw): """ Perform a HEAD request using `RESTClient.request()`. """ return self.IMPL.GET(*n, **kw) def POST(self, *n, **kw): """ Perform a POST request using `RESTClient.request()` """ return self.IMPL.POST(*n, **kw) def PUT(self, *n, **kw): """ Perform a PUT request using `RESTClient.request()` """ return self.IMPL.PUT(*n, **kw) def PATCH(self, *n, **kw): """ Perform a PATCH request using `RESTClient.request()` """ return self.IMPL.PATCH(*n, **kw) def DELETE(self, *n, **kw): """ Perform a DELETE request using `RESTClient.request()` """ return self.IMPL.DELETE(*n, **kw) python-k8sclient-0.4.0/k8sclient/client/__init__.py0000664000567000056710000002050513046233226023375 0ustar jenkinsjenkins00000000000000# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from __future__ import absolute_import # import models into sdk package from .models.v1_persistent_volume import V1PersistentVolume from .models.v1_tcp_socket_action import V1TCPSocketAction from .models.v1_resource_quota_status import V1ResourceQuotaStatus from .models.v1_container_state_terminated import V1ContainerStateTerminated from .models.v1_scale_spec import V1ScaleSpec from .models.v1_replication_controller_list import V1ReplicationControllerList from .models.v1_capability import V1Capability from .models.v1_pod import V1Pod from .models.v1_event import V1Event from .models.v1_node_daemon_endpoints import V1NodeDaemonEndpoints from .models.v1_host_path_volume_source import V1HostPathVolumeSource from .models.v1_config_map_key_selector import V1ConfigMapKeySelector from .models.v1_volume import V1Volume from .models.v1_container_state_running import V1ContainerStateRunning from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource from .models.v1_delete_options import V1DeleteOptions from .models.v1_pod_template_spec import V1PodTemplateSpec from .models.v1_secret_list import V1SecretList from .models.v1_nfs_volume_source import V1NFSVolumeSource from .models.v1_ceph_fs_volume_source import V1CephFSVolumeSource from .models.v1_capabilities import V1Capabilities from .models.v1_component_condition import V1ComponentCondition from .models.unversioned_status import UnversionedStatus from .models.v1_service_status import V1ServiceStatus from .models.unversioned_status_details import UnversionedStatusDetails from .models.v1_secret_volume_source import V1SecretVolumeSource from .models.v1_resource_requirements import V1ResourceRequirements from .models.v1_persistent_volume_claim import V1PersistentVolumeClaim from .models.unversioned_patch import UnversionedPatch from .models.v1_namespace_status import V1NamespaceStatus from .models.v1_resource_quota_scope import V1ResourceQuotaScope from .models.v1_azure_file_volume_source import V1AzureFileVolumeSource from .models.v1_persistent_volume_access_mode import V1PersistentVolumeAccessMode from .models.v1_resource_quota_spec import V1ResourceQuotaSpec from .models.v1_persistent_volume_spec import V1PersistentVolumeSpec from .models.v1_exec_action import V1ExecAction from .models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource from .models.v1_service_spec import V1ServiceSpec from .models.v1_service_list import V1ServiceList from .models.v1_persistent_volume_list import V1PersistentVolumeList from .models.v1_container_status import V1ContainerStatus from .models.v1_handler import V1Handler from .models.v1_node_address import V1NodeAddress from .models.v1_fc_volume_source import V1FCVolumeSource from .models.v1_endpoint_port import V1EndpointPort from .models.v1_downward_api_volume_file import V1DownwardAPIVolumeFile from .models.v1_endpoint_subset import V1EndpointSubset from .models.v1_limit_range_list import V1LimitRangeList from .models.v1_container import V1Container from .models.v1_pod_spec import V1PodSpec from .models.v1_flocker_volume_source import V1FlockerVolumeSource from .models.v1_persistent_volume_status import V1PersistentVolumeStatus from .models.v1_rbd_volume_source import V1RBDVolumeSource from .models.v1_load_balancer_ingress import V1LoadBalancerIngress from .models.v1_security_context import V1SecurityContext from .models.v1_service_port import V1ServicePort from .models.v1_scale_status import V1ScaleStatus from .models.v1_namespace import V1Namespace from .models.v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource from .models.v1_endpoints_list import V1EndpointsList from .models.v1_node_list import V1NodeList from .models.v1_event_source import V1EventSource from .models.v1_http_header import V1HTTPHeader from .models.v1_key_to_path import V1KeyToPath from .models.v1_env_var_source import V1EnvVarSource from .models.unversioned_list_meta import UnversionedListMeta from .models.v1_limit_range_spec import V1LimitRangeSpec from .models.v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec from .models.v1_replication_controller import V1ReplicationController from .models.v1_namespace_list import V1NamespaceList from .models.v1_config_map_list import V1ConfigMapList from .models.integer import Integer from .models.v1_volume_mount import V1VolumeMount from .models.v1_node_status import V1NodeStatus from .models.v1_replication_controller_status import V1ReplicationControllerStatus from .models.v1_pod_condition import V1PodCondition from .models.v1_node_condition import V1NodeCondition from .models.v1_pod_security_context import V1PodSecurityContext from .models.v1_service_account import V1ServiceAccount from .models.v1_pod_template import V1PodTemplate from .models.v1_pod_list import V1PodList from .models.v1_empty_dir_volume_source import V1EmptyDirVolumeSource from .models.v1_node_spec import V1NodeSpec from .models.v1_http_get_action import V1HTTPGetAction from .models.v1_resource_quota_list import V1ResourceQuotaList from .models.v1_daemon_endpoint import V1DaemonEndpoint from .models.v1_service_account_list import V1ServiceAccountList from .models.v1_probe import V1Probe from .models.v1_namespace_spec import V1NamespaceSpec from .models.v1_iscsi_volume_source import V1ISCSIVolumeSource from .models.v1_event_list import V1EventList from .models.v1_load_balancer_status import V1LoadBalancerStatus from .models.v1_persistent_volume_claim_list import V1PersistentVolumeClaimList from .models.v1_component_status import V1ComponentStatus from .models.v1_git_repo_volume_source import V1GitRepoVolumeSource from .models.v1_object_meta import V1ObjectMeta from .models.v1_secret_key_selector import V1SecretKeySelector from .models.v1_local_object_reference import V1LocalObjectReference from .models.v1_config_map import V1ConfigMap from .models.v1_flex_volume_source import V1FlexVolumeSource from .models.v1_container_port import V1ContainerPort from .models.v1_secret import V1Secret from .models.v1_downward_api_volume_source import V1DownwardAPIVolumeSource from .models.v1_container_state import V1ContainerState from .models.v1_endpoints import V1Endpoints from .models.v1_cinder_volume_source import V1CinderVolumeSource from .models.v1_pod_status import V1PodStatus from .models.v1_se_linux_options import V1SELinuxOptions from .models.v1_service import V1Service from .models.v1_object_reference import V1ObjectReference from .models.v1_object_field_selector import V1ObjectFieldSelector from .models.v1_component_status_list import V1ComponentStatusList from .models.v1_lifecycle import V1Lifecycle from .models.v1_node_system_info import V1NodeSystemInfo from .models.json_watch_event import JsonWatchEvent from .models.v1_endpoint_address import V1EndpointAddress from .models.v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource from .models.v1_binding import V1Binding from .models.v1_node import V1Node from .models.v1_resource_quota import V1ResourceQuota from .models.v1_env_var import V1EnvVar from .models.v1_scale import V1Scale from .models.unversioned_status_cause import UnversionedStatusCause from .models.v1_replication_controller_spec import V1ReplicationControllerSpec from .models.v1_container_state_waiting import V1ContainerStateWaiting from .models.v1_pod_template_list import V1PodTemplateList from .models.v1_limit_range_item import V1LimitRangeItem from .models.v1_finalizer_name import V1FinalizerName from .models.v1_limit_range import V1LimitRange from .models.v1_glusterfs_volume_source import V1GlusterfsVolumeSource from .models.v1_container_image import V1ContainerImage from .models.v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus # import apis into sdk package from .apis.apiv_api import ApivApi # import ApiClient from .api_client import ApiClient from .configuration import Configuration configuration = Configuration() python-k8sclient-0.4.0/k8sclient/client/models/0000775000567000056710000000000013046233470022546 5ustar jenkinsjenkins00000000000000python-k8sclient-0.4.0/k8sclient/client/models/v1_key_to_path.py0000664000567000056710000000646713046233226026050 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1KeyToPath(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'key': 'str', 'path': 'str' } self.attribute_map = { 'key': 'key', 'path': 'path' } self._key = None self._path = None @property def key(self): """ Gets the key of this V1KeyToPath. The key to project. :return: The key of this V1KeyToPath. :rtype: str """ return self._key @key.setter def key(self, key): """ Sets the key of this V1KeyToPath. The key to project. :param key: The key of this V1KeyToPath. :type: str """ self._key = key @property def path(self): """ Gets the path of this V1KeyToPath. The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. :return: The path of this V1KeyToPath. :rtype: str """ return self._path @path.setter def path(self, path): """ Sets the path of this V1KeyToPath. The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. :param path: The path of this V1KeyToPath. :type: str """ self._path = path def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_namespace_list.py0000664000567000056710000001352213046233226026517 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1NamespaceList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'items': 'list[V1Namespace]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'items': 'items' } self._kind = None self._api_version = None self._metadata = None self._items = None @property def kind(self): """ Gets the kind of this V1NamespaceList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1NamespaceList. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1NamespaceList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1NamespaceList. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1NamespaceList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1NamespaceList. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1NamespaceList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1NamespaceList. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1NamespaceList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1NamespaceList. :rtype: UnversionedListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1NamespaceList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1NamespaceList. :type: UnversionedListMeta """ self._metadata = metadata @property def items(self): """ Gets the items of this V1NamespaceList. Items is the list of Namespace objects in the list. More info: http://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md :return: The items of this V1NamespaceList. :rtype: list[V1Namespace] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1NamespaceList. Items is the list of Namespace objects in the list. More info: http://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md :param items: The items of this V1NamespaceList. :type: list[V1Namespace] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_pod_spec.py0000664000567000056710000004331313046233226025325 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PodSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'volumes': 'list[V1Volume]', 'containers': 'list[V1Container]', 'restart_policy': 'str', 'termination_grace_period_seconds': 'int', 'active_deadline_seconds': 'int', 'dns_policy': 'str', 'node_selector': 'object', 'service_account_name': 'str', 'service_account': 'str', 'node_name': 'str', 'host_network': 'bool', 'host_pid': 'bool', 'host_ipc': 'bool', 'security_context': 'V1PodSecurityContext', 'image_pull_secrets': 'list[V1LocalObjectReference]' } self.attribute_map = { 'volumes': 'volumes', 'containers': 'containers', 'restart_policy': 'restartPolicy', 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', 'active_deadline_seconds': 'activeDeadlineSeconds', 'dns_policy': 'dnsPolicy', 'node_selector': 'nodeSelector', 'service_account_name': 'serviceAccountName', 'service_account': 'serviceAccount', 'node_name': 'nodeName', 'host_network': 'hostNetwork', 'host_pid': 'hostPID', 'host_ipc': 'hostIPC', 'security_context': 'securityContext', 'image_pull_secrets': 'imagePullSecrets' } self._volumes = None self._containers = None self._restart_policy = None self._termination_grace_period_seconds = None self._active_deadline_seconds = None self._dns_policy = None self._node_selector = None self._service_account_name = None self._service_account = None self._node_name = None self._host_network = None self._host_pid = None self._host_ipc = None self._security_context = None self._image_pull_secrets = None @property def volumes(self): """ Gets the volumes of this V1PodSpec. List of volumes that can be mounted by containers belonging to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md :return: The volumes of this V1PodSpec. :rtype: list[V1Volume] """ return self._volumes @volumes.setter def volumes(self, volumes): """ Sets the volumes of this V1PodSpec. List of volumes that can be mounted by containers belonging to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md :param volumes: The volumes of this V1PodSpec. :type: list[V1Volume] """ self._volumes = volumes @property def containers(self): """ Gets the containers of this V1PodSpec. List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md :return: The containers of this V1PodSpec. :rtype: list[V1Container] """ return self._containers @containers.setter def containers(self, containers): """ Sets the containers of this V1PodSpec. List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md :param containers: The containers of this V1PodSpec. :type: list[V1Container] """ self._containers = containers @property def restart_policy(self): """ Gets the restart_policy of this V1PodSpec. Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#restartpolicy :return: The restart_policy of this V1PodSpec. :rtype: str """ return self._restart_policy @restart_policy.setter def restart_policy(self, restart_policy): """ Sets the restart_policy of this V1PodSpec. Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#restartpolicy :param restart_policy: The restart_policy of this V1PodSpec. :type: str """ self._restart_policy = restart_policy @property def termination_grace_period_seconds(self): """ Gets the termination_grace_period_seconds of this V1PodSpec. Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. :return: The termination_grace_period_seconds of this V1PodSpec. :rtype: int """ return self._termination_grace_period_seconds @termination_grace_period_seconds.setter def termination_grace_period_seconds(self, termination_grace_period_seconds): """ Sets the termination_grace_period_seconds of this V1PodSpec. Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. :param termination_grace_period_seconds: The termination_grace_period_seconds of this V1PodSpec. :type: int """ self._termination_grace_period_seconds = termination_grace_period_seconds @property def active_deadline_seconds(self): """ Gets the active_deadline_seconds of this V1PodSpec. Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. :return: The active_deadline_seconds of this V1PodSpec. :rtype: int """ return self._active_deadline_seconds @active_deadline_seconds.setter def active_deadline_seconds(self, active_deadline_seconds): """ Sets the active_deadline_seconds of this V1PodSpec. Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. :param active_deadline_seconds: The active_deadline_seconds of this V1PodSpec. :type: int """ self._active_deadline_seconds = active_deadline_seconds @property def dns_policy(self): """ Gets the dns_policy of this V1PodSpec. 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 """ return self._dns_policy @dns_policy.setter def dns_policy(self, dns_policy): """ Sets the dns_policy of this V1PodSpec. 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 """ self._dns_policy = dns_policy @property def node_selector(self): """ Gets the node_selector of this V1PodSpec. NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: http://releases.k8s.io/release-1.2/docs/user-guide/node-selection/README.md :return: The node_selector of this V1PodSpec. :rtype: object """ return self._node_selector @node_selector.setter def node_selector(self, node_selector): """ Sets the node_selector of this V1PodSpec. NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: http://releases.k8s.io/release-1.2/docs/user-guide/node-selection/README.md :param node_selector: The node_selector of this V1PodSpec. :type: object """ self._node_selector = node_selector @property def service_account_name(self): """ Gets the service_account_name of this V1PodSpec. ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/release-1.2/docs/design/service_accounts.md :return: The service_account_name of this V1PodSpec. :rtype: str """ return self._service_account_name @service_account_name.setter def service_account_name(self, service_account_name): """ Sets the service_account_name of this V1PodSpec. ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/release-1.2/docs/design/service_accounts.md :param service_account_name: The service_account_name of this V1PodSpec. :type: str """ self._service_account_name = service_account_name @property def service_account(self): """ Gets the service_account of this V1PodSpec. DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. :return: The service_account of this V1PodSpec. :rtype: str """ return self._service_account @service_account.setter def service_account(self, service_account): """ Sets the service_account of this V1PodSpec. DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. :param service_account: The service_account of this V1PodSpec. :type: str """ self._service_account = service_account @property def node_name(self): """ Gets the node_name of this V1PodSpec. NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. :return: The node_name of this V1PodSpec. :rtype: str """ return self._node_name @node_name.setter def node_name(self, node_name): """ Sets the node_name of this V1PodSpec. NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. :param node_name: The node_name of this V1PodSpec. :type: str """ self._node_name = node_name @property def host_network(self): """ Gets the host_network of this V1PodSpec. Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. :return: The host_network of this V1PodSpec. :rtype: bool """ return self._host_network @host_network.setter def host_network(self, host_network): """ Sets the host_network of this V1PodSpec. Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. :param host_network: The host_network of this V1PodSpec. :type: bool """ self._host_network = host_network @property def host_pid(self): """ Gets the host_pid of this V1PodSpec. Use the host's pid namespace. Optional: Default to false. :return: The host_pid of this V1PodSpec. :rtype: bool """ return self._host_pid @host_pid.setter def host_pid(self, host_pid): """ Sets the host_pid of this V1PodSpec. Use the host's pid namespace. Optional: Default to false. :param host_pid: The host_pid of this V1PodSpec. :type: bool """ self._host_pid = host_pid @property def host_ipc(self): """ Gets the host_ipc of this V1PodSpec. Use the host's ipc namespace. Optional: Default to false. :return: The host_ipc of this V1PodSpec. :rtype: bool """ return self._host_ipc @host_ipc.setter def host_ipc(self, host_ipc): """ Sets the host_ipc of this V1PodSpec. Use the host's ipc namespace. Optional: Default to false. :param host_ipc: The host_ipc of this V1PodSpec. :type: bool """ self._host_ipc = host_ipc @property def security_context(self): """ Gets the security_context of this V1PodSpec. SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. :return: The security_context of this V1PodSpec. :rtype: V1PodSecurityContext """ return self._security_context @security_context.setter def security_context(self, security_context): """ Sets the security_context of this V1PodSpec. SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. :param security_context: The security_context of this V1PodSpec. :type: V1PodSecurityContext """ self._security_context = security_context @property def image_pull_secrets(self): """ Gets the image_pull_secrets of this V1PodSpec. ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md#specifying-imagepullsecrets-on-a-pod :return: The image_pull_secrets of this V1PodSpec. :rtype: list[V1LocalObjectReference] """ return self._image_pull_secrets @image_pull_secrets.setter def image_pull_secrets(self, image_pull_secrets): """ Sets the image_pull_secrets of this V1PodSpec. ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md#specifying-imagepullsecrets-on-a-pod :param image_pull_secrets: The image_pull_secrets of this V1PodSpec. :type: list[V1LocalObjectReference] """ self._image_pull_secrets = image_pull_secrets def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_container.py0000664000567000056710000005173213046233226025517 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Container(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'image': 'str', 'command': 'list[str]', 'args': 'list[str]', 'working_dir': 'str', 'ports': 'list[V1ContainerPort]', 'env': 'list[V1EnvVar]', 'resources': 'V1ResourceRequirements', 'volume_mounts': 'list[V1VolumeMount]', 'liveness_probe': 'V1Probe', 'readiness_probe': 'V1Probe', 'lifecycle': 'V1Lifecycle', 'termination_message_path': 'str', 'image_pull_policy': 'str', 'security_context': 'V1SecurityContext', 'stdin': 'bool', 'stdin_once': 'bool', 'tty': 'bool' } self.attribute_map = { 'name': 'name', 'image': 'image', 'command': 'command', 'args': 'args', 'working_dir': 'workingDir', 'ports': 'ports', 'env': 'env', 'resources': 'resources', 'volume_mounts': 'volumeMounts', 'liveness_probe': 'livenessProbe', 'readiness_probe': 'readinessProbe', 'lifecycle': 'lifecycle', 'termination_message_path': 'terminationMessagePath', 'image_pull_policy': 'imagePullPolicy', 'security_context': 'securityContext', 'stdin': 'stdin', 'stdin_once': 'stdinOnce', 'tty': 'tty' } self._name = None self._image = None self._command = None self._args = None self._working_dir = None self._ports = None self._env = None self._resources = None self._volume_mounts = None self._liveness_probe = None self._readiness_probe = None self._lifecycle = None self._termination_message_path = None self._image_pull_policy = None self._security_context = None self._stdin = None self._stdin_once = None self._tty = None @property def name(self): """ Gets the name of this V1Container. Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. :return: The name of this V1Container. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1Container. Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. :param name: The name of this V1Container. :type: str """ self._name = name @property def image(self): """ Gets the image of this V1Container. Docker image name. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md :return: The image of this V1Container. :rtype: str """ return self._image @image.setter def image(self, image): """ Sets the image of this V1Container. Docker image name. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md :param image: The image of this V1Container. :type: str """ self._image = image @property def command(self): """ Gets the command of this V1Container. Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands :return: The command of this V1Container. :rtype: list[str] """ return self._command @command.setter def command(self, command): """ Sets the command of this V1Container. Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands :param command: The command of this V1Container. :type: list[str] """ self._command = command @property def args(self): """ Gets the args of this V1Container. Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands :return: The args of this V1Container. :rtype: list[str] """ return self._args @args.setter def args(self, args): """ Sets the args of this V1Container. Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands :param args: The args of this V1Container. :type: list[str] """ self._args = args @property def working_dir(self): """ Gets the working_dir of this V1Container. Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. :return: The working_dir of this V1Container. :rtype: str """ return self._working_dir @working_dir.setter def working_dir(self, working_dir): """ Sets the working_dir of this V1Container. Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. :param working_dir: The working_dir of this V1Container. :type: str """ self._working_dir = working_dir @property def ports(self): """ Gets the ports of this V1Container. List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. :return: The ports of this V1Container. :rtype: list[V1ContainerPort] """ return self._ports @ports.setter def ports(self, ports): """ Sets the ports of this V1Container. List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. :param ports: The ports of this V1Container. :type: list[V1ContainerPort] """ self._ports = ports @property def env(self): """ Gets the env of this V1Container. List of environment variables to set in the container. Cannot be updated. :return: The env of this V1Container. :rtype: list[V1EnvVar] """ return self._env @env.setter def env(self, env): """ Sets the env of this V1Container. List of environment variables to set in the container. Cannot be updated. :param env: The env of this V1Container. :type: list[V1EnvVar] """ self._env = env @property def resources(self): """ Gets the resources of this V1Container. Compute Resources required by this container. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#resources :return: The resources of this V1Container. :rtype: V1ResourceRequirements """ return self._resources @resources.setter def resources(self, resources): """ Sets the resources of this V1Container. Compute Resources required by this container. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#resources :param resources: The resources of this V1Container. :type: V1ResourceRequirements """ self._resources = resources @property def volume_mounts(self): """ Gets the volume_mounts of this V1Container. Pod volumes to mount into the container's filesyste. Cannot be updated. :return: The volume_mounts of this V1Container. :rtype: list[V1VolumeMount] """ return self._volume_mounts @volume_mounts.setter def volume_mounts(self, volume_mounts): """ Sets the volume_mounts of this V1Container. Pod volumes to mount into the container's filesyste. Cannot be updated. :param volume_mounts: The volume_mounts of this V1Container. :type: list[V1VolumeMount] """ self._volume_mounts = volume_mounts @property def liveness_probe(self): """ Gets the liveness_probe of this V1Container. Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :return: The liveness_probe of this V1Container. :rtype: V1Probe """ return self._liveness_probe @liveness_probe.setter def liveness_probe(self, liveness_probe): """ Sets the liveness_probe of this V1Container. Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :param liveness_probe: The liveness_probe of this V1Container. :type: V1Probe """ self._liveness_probe = liveness_probe @property def readiness_probe(self): """ Gets the readiness_probe of this V1Container. Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :return: The readiness_probe of this V1Container. :rtype: V1Probe """ return self._readiness_probe @readiness_probe.setter def readiness_probe(self, readiness_probe): """ Sets the readiness_probe of this V1Container. Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :param readiness_probe: The readiness_probe of this V1Container. :type: V1Probe """ self._readiness_probe = readiness_probe @property def lifecycle(self): """ Gets the lifecycle of this V1Container. Actions that the management system should take in response to container lifecycle events. Cannot be updated. :return: The lifecycle of this V1Container. :rtype: V1Lifecycle """ return self._lifecycle @lifecycle.setter def lifecycle(self, lifecycle): """ Sets the lifecycle of this V1Container. Actions that the management system should take in response to container lifecycle events. Cannot be updated. :param lifecycle: The lifecycle of this V1Container. :type: V1Lifecycle """ self._lifecycle = lifecycle @property 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. Defaults to /dev/termination-log. Cannot be updated. :return: The termination_message_path of this V1Container. :rtype: str """ return self._termination_message_path @termination_message_path.setter def termination_message_path(self, termination_message_path): """ Sets the termination_message_path of this V1Container. Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Defaults to /dev/termination-log. Cannot be updated. :param termination_message_path: The termination_message_path of this V1Container. :type: str """ self._termination_message_path = termination_message_path @property def image_pull_policy(self): """ Gets the image_pull_policy of this V1Container. Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md#updating-images :return: The image_pull_policy of this V1Container. :rtype: str """ return self._image_pull_policy @image_pull_policy.setter def image_pull_policy(self, image_pull_policy): """ Sets the image_pull_policy of this V1Container. Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md#updating-images :param image_pull_policy: The image_pull_policy of this V1Container. :type: str """ self._image_pull_policy = image_pull_policy @property def security_context(self): """ Gets the security_context of this V1Container. Security options the pod should run with. More info: http://releases.k8s.io/release-1.2/docs/design/security_context.md :return: The security_context of this V1Container. :rtype: V1SecurityContext """ return self._security_context @security_context.setter def security_context(self, security_context): """ Sets the security_context of this V1Container. Security options the pod should run with. More info: http://releases.k8s.io/release-1.2/docs/design/security_context.md :param security_context: The security_context of this V1Container. :type: V1SecurityContext """ self._security_context = security_context @property def stdin(self): """ Gets the stdin of this V1Container. Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. :return: The stdin of this V1Container. :rtype: bool """ return self._stdin @stdin.setter def stdin(self, stdin): """ Sets the stdin of this V1Container. Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. :param stdin: The stdin of this V1Container. :type: bool """ self._stdin = stdin @property def stdin_once(self): """ Gets the stdin_once of this V1Container. Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false :return: The stdin_once of this V1Container. :rtype: bool """ return self._stdin_once @stdin_once.setter def stdin_once(self, stdin_once): """ Sets the stdin_once of this V1Container. Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false :param stdin_once: The stdin_once of this V1Container. :type: bool """ self._stdin_once = stdin_once @property def tty(self): """ Gets the tty of this V1Container. Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. :return: The tty of this V1Container. :rtype: bool """ return self._tty @tty.setter def tty(self, tty): """ Sets the tty of this V1Container. Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. :param tty: The tty of this V1Container. :type: bool """ self._tty = tty def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_pod_condition.py0000664000567000056710000001515013046233226026357 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PodCondition(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'type': 'str', 'status': 'str', 'last_probe_time': 'str', 'last_transition_time': 'str', 'reason': 'str', 'message': 'str' } self.attribute_map = { 'type': 'type', 'status': 'status', 'last_probe_time': 'lastProbeTime', 'last_transition_time': 'lastTransitionTime', 'reason': 'reason', 'message': 'message' } self._type = None self._status = None self._last_probe_time = None self._last_transition_time = None self._reason = None self._message = None @property def type(self): """ Gets the type of this V1PodCondition. Type is the type of the condition. Currently only Ready. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-conditions :return: The type of this V1PodCondition. :rtype: str """ return self._type @type.setter def type(self, type): """ Sets the type of this V1PodCondition. Type is the type of the condition. Currently only Ready. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-conditions :param type: The type of this V1PodCondition. :type: str """ self._type = type @property def status(self): """ Gets the status of this V1PodCondition. Status is the status of the condition. Can be True, False, Unknown. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-conditions :return: The status of this V1PodCondition. :rtype: str """ return self._status @status.setter def status(self, status): """ Sets the status of this V1PodCondition. Status is the status of the condition. Can be True, False, Unknown. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-conditions :param status: The status of this V1PodCondition. :type: str """ self._status = status @property def last_probe_time(self): """ Gets the last_probe_time of this V1PodCondition. Last time we probed the condition. :return: The last_probe_time of this V1PodCondition. :rtype: str """ return self._last_probe_time @last_probe_time.setter def last_probe_time(self, last_probe_time): """ Sets the last_probe_time of this V1PodCondition. Last time we probed the condition. :param last_probe_time: The last_probe_time of this V1PodCondition. :type: str """ self._last_probe_time = last_probe_time @property def last_transition_time(self): """ Gets the last_transition_time of this V1PodCondition. Last time the condition transitioned from one status to another. :return: The last_transition_time of this V1PodCondition. :rtype: str """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): """ Sets the last_transition_time of this V1PodCondition. Last time the condition transitioned from one status to another. :param last_transition_time: The last_transition_time of this V1PodCondition. :type: str """ self._last_transition_time = last_transition_time @property def reason(self): """ Gets the reason of this V1PodCondition. Unique, one-word, CamelCase reason for the condition's last transition. :return: The reason of this V1PodCondition. :rtype: str """ return self._reason @reason.setter def reason(self, reason): """ Sets the reason of this V1PodCondition. Unique, one-word, CamelCase reason for the condition's last transition. :param reason: The reason of this V1PodCondition. :type: str """ self._reason = reason @property def message(self): """ Gets the message of this V1PodCondition. Human-readable message indicating details about last transition. :return: The message of this V1PodCondition. :rtype: str """ return self._message @message.setter def message(self, message): """ Sets the message of this V1PodCondition. Human-readable message indicating details about last transition. :param message: The message of this V1PodCondition. :type: str """ self._message = message def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_endpoint_subset.py0000664000567000056710000001153013046233226026732 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1EndpointSubset(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'addresses': 'list[V1EndpointAddress]', 'not_ready_addresses': 'list[V1EndpointAddress]', 'ports': 'list[V1EndpointPort]' } self.attribute_map = { 'addresses': 'addresses', 'not_ready_addresses': 'notReadyAddresses', 'ports': 'ports' } self._addresses = None self._not_ready_addresses = None self._ports = None @property def addresses(self): """ Gets the addresses of this V1EndpointSubset. IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. :return: The addresses of this V1EndpointSubset. :rtype: list[V1EndpointAddress] """ return self._addresses @addresses.setter def addresses(self, addresses): """ Sets the addresses of this V1EndpointSubset. IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. :param addresses: The addresses of this V1EndpointSubset. :type: list[V1EndpointAddress] """ self._addresses = addresses @property def not_ready_addresses(self): """ Gets the not_ready_addresses of this V1EndpointSubset. IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. :return: The not_ready_addresses of this V1EndpointSubset. :rtype: list[V1EndpointAddress] """ return self._not_ready_addresses @not_ready_addresses.setter def not_ready_addresses(self, not_ready_addresses): """ Sets the not_ready_addresses of this V1EndpointSubset. IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. :param not_ready_addresses: The not_ready_addresses of this V1EndpointSubset. :type: list[V1EndpointAddress] """ self._not_ready_addresses = not_ready_addresses @property def ports(self): """ Gets the ports of this V1EndpointSubset. Port numbers available on the related IP addresses. :return: The ports of this V1EndpointSubset. :rtype: list[V1EndpointPort] """ return self._ports @ports.setter def ports(self, ports): """ Sets the ports of this V1EndpointSubset. Port numbers available on the related IP addresses. :param ports: The ports of this V1EndpointSubset. :type: list[V1EndpointPort] """ self._ports = ports def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/unversioned_status_cause.py0000664000567000056710000001174313046233226030251 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class UnversionedStatusCause(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'reason': 'str', 'message': 'str', 'field': 'str' } self.attribute_map = { 'reason': 'reason', 'message': 'message', 'field': 'field' } self._reason = None self._message = None self._field = None @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 @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 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.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\" :return: The field of this 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.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\" :param field: The field of this UnversionedStatusCause. :type: str """ self._field = field def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_rbd_volume_source.py0000664000567000056710000002203013046233226027240 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1RBDVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'monitors': 'list[str]', 'image': 'str', 'fs_type': 'str', 'pool': 'str', 'user': 'str', 'keyring': 'str', 'secret_ref': 'V1LocalObjectReference', 'read_only': 'bool' } self.attribute_map = { 'monitors': 'monitors', 'image': 'image', 'fs_type': 'fsType', 'pool': 'pool', 'user': 'user', 'keyring': 'keyring', 'secret_ref': 'secretRef', 'read_only': 'readOnly' } self._monitors = None self._image = None self._fs_type = None self._pool = None self._user = None self._keyring = None self._secret_ref = None self._read_only = None @property def monitors(self): """ Gets the monitors of this V1RBDVolumeSource. A collection of Ceph monitors. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The monitors of this V1RBDVolumeSource. :rtype: list[str] """ return self._monitors @monitors.setter def monitors(self, monitors): """ Sets the monitors of this V1RBDVolumeSource. A collection of Ceph monitors. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param monitors: The monitors of this V1RBDVolumeSource. :type: list[str] """ self._monitors = monitors @property def image(self): """ Gets the image of this V1RBDVolumeSource. The rados image name. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The image of this V1RBDVolumeSource. :rtype: str """ return self._image @image.setter def image(self, image): """ Sets the image of this V1RBDVolumeSource. The rados image name. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param image: The image of this V1RBDVolumeSource. :type: str """ self._image = image @property def fs_type(self): """ Gets the fs_type of this V1RBDVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#rbd :return: The fs_type of this V1RBDVolumeSource. :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): """ Sets the fs_type of this V1RBDVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#rbd :param fs_type: The fs_type of this V1RBDVolumeSource. :type: str """ self._fs_type = fs_type @property def pool(self): """ Gets the pool of this V1RBDVolumeSource. The rados pool name. Default is rbd. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it. :return: The pool of this V1RBDVolumeSource. :rtype: str """ return self._pool @pool.setter def pool(self, pool): """ Sets the pool of this V1RBDVolumeSource. The rados pool name. Default is rbd. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it. :param pool: The pool of this V1RBDVolumeSource. :type: str """ self._pool = pool @property def user(self): """ Gets the user of this V1RBDVolumeSource. The rados user name. Default is admin. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The user of this V1RBDVolumeSource. :rtype: str """ return self._user @user.setter def user(self, user): """ Sets the user of this V1RBDVolumeSource. The rados user name. Default is admin. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param user: The user of this V1RBDVolumeSource. :type: str """ self._user = user @property def keyring(self): """ Gets the keyring of this V1RBDVolumeSource. Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The keyring of this V1RBDVolumeSource. :rtype: str """ return self._keyring @keyring.setter def keyring(self, keyring): """ Sets the keyring of this V1RBDVolumeSource. Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param keyring: The keyring of this V1RBDVolumeSource. :type: str """ self._keyring = keyring @property def secret_ref(self): """ Gets the secret_ref of this V1RBDVolumeSource. SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is empty. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The secret_ref of this V1RBDVolumeSource. :rtype: V1LocalObjectReference """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): """ Sets the secret_ref of this V1RBDVolumeSource. SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is empty. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param secret_ref: The secret_ref of this V1RBDVolumeSource. :type: V1LocalObjectReference """ self._secret_ref = secret_ref @property def read_only(self): """ Gets the read_only of this V1RBDVolumeSource. ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The read_only of this V1RBDVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1RBDVolumeSource. ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param read_only: The read_only of this V1RBDVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_resource_quota_list.py0000664000567000056710000001377613046233226027636 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ResourceQuotaList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'items': 'list[V1ResourceQuota]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'items': 'items' } self._kind = None self._api_version = None self._metadata = None self._items = None @property def kind(self): """ Gets the kind of this V1ResourceQuotaList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1ResourceQuotaList. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1ResourceQuotaList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1ResourceQuotaList. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1ResourceQuotaList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1ResourceQuotaList. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1ResourceQuotaList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1ResourceQuotaList. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1ResourceQuotaList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1ResourceQuotaList. :rtype: UnversionedListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1ResourceQuotaList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1ResourceQuotaList. :type: UnversionedListMeta """ self._metadata = metadata @property def items(self): """ Gets the items of this V1ResourceQuotaList. Items is a list of ResourceQuota objects. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota :return: The items of this V1ResourceQuotaList. :rtype: list[V1ResourceQuota] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1ResourceQuotaList. Items is a list of ResourceQuota objects. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota :param items: The items of this V1ResourceQuotaList. :type: list[V1ResourceQuota] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_resource_quota_scope.py0000664000567000056710000000405013046233226027755 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ResourceQuotaScope(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { } self.attribute_map = { } def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_endpoints_list.py0000664000567000056710000001317013046233226026565 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1EndpointsList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'items': 'list[V1Endpoints]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'items': 'items' } self._kind = None self._api_version = None self._metadata = None self._items = None @property def kind(self): """ Gets the kind of this V1EndpointsList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1EndpointsList. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1EndpointsList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1EndpointsList. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1EndpointsList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1EndpointsList. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1EndpointsList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1EndpointsList. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1EndpointsList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1EndpointsList. :rtype: UnversionedListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1EndpointsList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1EndpointsList. :type: UnversionedListMeta """ self._metadata = metadata @property def items(self): """ Gets the items of this V1EndpointsList. List of endpoints. :return: The items of this V1EndpointsList. :rtype: list[V1Endpoints] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1EndpointsList. List of endpoints. :param items: The items of this V1EndpointsList. :type: list[V1Endpoints] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_persistent_volume_status.py0000664000567000056710000001074513046233226030726 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PersistentVolumeStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'phase': 'str', 'message': 'str', 'reason': 'str' } self.attribute_map = { 'phase': 'phase', 'message': 'message', 'reason': 'reason' } self._phase = None self._message = None self._reason = None @property def phase(self): """ Gets the phase of this V1PersistentVolumeStatus. Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#phase :return: The phase of this V1PersistentVolumeStatus. :rtype: str """ return self._phase @phase.setter def phase(self, phase): """ Sets the phase of this V1PersistentVolumeStatus. Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#phase :param phase: The phase of this V1PersistentVolumeStatus. :type: str """ self._phase = phase @property def message(self): """ Gets the message of this V1PersistentVolumeStatus. A human-readable message indicating details about why the volume is in this state. :return: The message of this V1PersistentVolumeStatus. :rtype: str """ return self._message @message.setter def message(self, message): """ Sets the message of this V1PersistentVolumeStatus. A human-readable message indicating details about why the volume is in this state. :param message: The message of this V1PersistentVolumeStatus. :type: str """ self._message = message @property def reason(self): """ Gets the reason of this V1PersistentVolumeStatus. Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. :return: The reason of this V1PersistentVolumeStatus. :rtype: str """ return self._reason @reason.setter def reason(self, reason): """ Sets the reason of this V1PersistentVolumeStatus. Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. :param reason: The reason of this V1PersistentVolumeStatus. :type: str """ self._reason = reason def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_limit_range_item.py0000664000567000056710000001536713046233226027051 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1LimitRangeItem(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'type': 'str', 'max': 'object', 'min': 'object', 'default': 'object', 'default_request': 'object', 'max_limit_request_ratio': 'object' } self.attribute_map = { 'type': 'type', 'max': 'max', 'min': 'min', 'default': 'default', 'default_request': 'defaultRequest', 'max_limit_request_ratio': 'maxLimitRequestRatio' } self._type = None self._max = None self._min = None self._default = None self._default_request = None self._max_limit_request_ratio = None @property def type(self): """ Gets the type of this V1LimitRangeItem. Type of resource that this limit applies to. :return: The type of this V1LimitRangeItem. :rtype: str """ return self._type @type.setter def type(self, type): """ Sets the type of this V1LimitRangeItem. Type of resource that this limit applies to. :param type: The type of this V1LimitRangeItem. :type: str """ self._type = type @property def max(self): """ Gets the max of this V1LimitRangeItem. Max usage constraints on this kind by resource name. :return: The max of this V1LimitRangeItem. :rtype: object """ return self._max @max.setter def max(self, max): """ Sets the max of this V1LimitRangeItem. Max usage constraints on this kind by resource name. :param max: The max of this V1LimitRangeItem. :type: object """ self._max = max @property def min(self): """ Gets the min of this V1LimitRangeItem. Min usage constraints on this kind by resource name. :return: The min of this V1LimitRangeItem. :rtype: object """ return self._min @min.setter def min(self, min): """ Sets the min of this V1LimitRangeItem. Min usage constraints on this kind by resource name. :param min: The min of this V1LimitRangeItem. :type: object """ self._min = min @property def default(self): """ Gets the default of this V1LimitRangeItem. Default resource requirement limit value by resource name if resource limit is omitted. :return: The default of this V1LimitRangeItem. :rtype: object """ return self._default @default.setter def default(self, default): """ Sets the default of this V1LimitRangeItem. Default resource requirement limit value by resource name if resource limit is omitted. :param default: The default of this V1LimitRangeItem. :type: object """ self._default = default @property def default_request(self): """ Gets the default_request of this V1LimitRangeItem. DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. :return: The default_request of this V1LimitRangeItem. :rtype: object """ return self._default_request @default_request.setter def default_request(self, default_request): """ Sets the default_request of this V1LimitRangeItem. DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. :param default_request: The default_request of this V1LimitRangeItem. :type: object """ self._default_request = default_request @property def max_limit_request_ratio(self): """ Gets the max_limit_request_ratio of this V1LimitRangeItem. MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. :return: The max_limit_request_ratio of this V1LimitRangeItem. :rtype: object """ return self._max_limit_request_ratio @max_limit_request_ratio.setter def max_limit_request_ratio(self, max_limit_request_ratio): """ Sets the max_limit_request_ratio of this V1LimitRangeItem. MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. :param max_limit_request_ratio: The max_limit_request_ratio of this V1LimitRangeItem. :type: object """ self._max_limit_request_ratio = max_limit_request_ratio def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_persistent_volume.py0000664000567000056710000001606313046233226027322 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PersistentVolume(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1PersistentVolumeSpec', 'status': 'V1PersistentVolumeStatus' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status' } self._kind = None self._api_version = None self._metadata = None self._spec = None self._status = None @property def kind(self): """ Gets the kind of this V1PersistentVolume. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1PersistentVolume. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1PersistentVolume. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1PersistentVolume. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1PersistentVolume. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1PersistentVolume. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1PersistentVolume. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1PersistentVolume. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1PersistentVolume. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1PersistentVolume. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1PersistentVolume. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1PersistentVolume. :type: V1ObjectMeta """ self._metadata = metadata @property def spec(self): """ Gets the spec of this V1PersistentVolume. Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistent-volumes :return: The spec of this V1PersistentVolume. :rtype: V1PersistentVolumeSpec """ return self._spec @spec.setter def spec(self, spec): """ Sets the spec of this V1PersistentVolume. Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistent-volumes :param spec: The spec of this V1PersistentVolume. :type: V1PersistentVolumeSpec """ self._spec = spec @property def status(self): """ Gets the status of this V1PersistentVolume. Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistent-volumes :return: The status of this V1PersistentVolume. :rtype: V1PersistentVolumeStatus """ return self._status @status.setter def status(self, status): """ Sets the status of this V1PersistentVolume. Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistent-volumes :param status: The status of this V1PersistentVolume. :type: V1PersistentVolumeStatus """ self._status = status def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_daemon_endpoint.py0000664000567000056710000000512713046233226026675 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1DaemonEndpoint(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'port': 'int' } self.attribute_map = { 'port': 'Port' } self._port = None @property def port(self): """ Gets the port of this V1DaemonEndpoint. Port number of the given endpoint. :return: The port of this V1DaemonEndpoint. :rtype: int """ return self._port @port.setter def port(self, port): """ Sets the port of this V1DaemonEndpoint. Port number of the given endpoint. :param port: The port of this V1DaemonEndpoint. :type: int """ self._port = port def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_config_map.py0000664000567000056710000001324013046233226025627 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ConfigMap(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'data': 'object' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'data': 'data' } self._kind = None self._api_version = None self._metadata = None self._data = None @property def kind(self): """ Gets the kind of this V1ConfigMap. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1ConfigMap. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1ConfigMap. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1ConfigMap. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1ConfigMap. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1ConfigMap. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1ConfigMap. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1ConfigMap. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1ConfigMap. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1ConfigMap. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1ConfigMap. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1ConfigMap. :type: V1ObjectMeta """ self._metadata = metadata @property def data(self): """ Gets the data of this V1ConfigMap. Data contains the configuration data. Each key must be a valid DNS_SUBDOMAIN with an optional leading dot. :return: The data of this V1ConfigMap. :rtype: object """ return self._data @data.setter def data(self, data): """ Sets the data of this V1ConfigMap. Data contains the configuration data. Each key must be a valid DNS_SUBDOMAIN with an optional leading dot. :param data: The data of this V1ConfigMap. :type: object """ self._data = data def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_pod_template.py0000664000567000056710000001357513046233226026215 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PodTemplate(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'template': 'V1PodTemplateSpec' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'template': 'template' } self._kind = None self._api_version = None self._metadata = None self._template = None @property def kind(self): """ Gets the kind of this V1PodTemplate. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1PodTemplate. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1PodTemplate. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1PodTemplate. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1PodTemplate. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1PodTemplate. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1PodTemplate. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1PodTemplate. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1PodTemplate. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1PodTemplate. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1PodTemplate. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1PodTemplate. :type: V1ObjectMeta """ self._metadata = metadata @property def template(self): """ Gets the template of this V1PodTemplate. Template defines the pods that will be created from this pod template. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The template of this V1PodTemplate. :rtype: V1PodTemplateSpec """ return self._template @template.setter def template(self, template): """ Sets the template of this V1PodTemplate. Template defines the pods that will be created from this pod template. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param template: The template of this V1PodTemplate. :type: V1PodTemplateSpec """ self._template = template def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/unversioned_patch.py0000664000567000056710000000404413046233226026641 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class UnversionedPatch(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { } self.attribute_map = { } def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_persistent_volume_claim_volume_source.py0000664000567000056710000000762613046233226033443 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PersistentVolumeClaimVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'claim_name': 'str', 'read_only': 'bool' } self.attribute_map = { 'claim_name': 'claimName', 'read_only': 'readOnly' } self._claim_name = None self._read_only = None @property def claim_name(self): """ Gets the claim_name of this V1PersistentVolumeClaimVolumeSource. ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :return: The claim_name of this V1PersistentVolumeClaimVolumeSource. :rtype: str """ return self._claim_name @claim_name.setter def claim_name(self, claim_name): """ Sets the claim_name of this V1PersistentVolumeClaimVolumeSource. ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :param claim_name: The claim_name of this V1PersistentVolumeClaimVolumeSource. :type: str """ self._claim_name = claim_name @property def read_only(self): """ Gets the read_only of this V1PersistentVolumeClaimVolumeSource. Will force the ReadOnly setting in VolumeMounts. Default false. :return: The read_only of this V1PersistentVolumeClaimVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1PersistentVolumeClaimVolumeSource. Will force the ReadOnly setting in VolumeMounts. Default false. :param read_only: The read_only of this V1PersistentVolumeClaimVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_container_image.py0000664000567000056710000000676713046233226026671 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ContainerImage(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'names': 'list[str]', 'size_bytes': 'int' } self.attribute_map = { 'names': 'names', 'size_bytes': 'sizeBytes' } self._names = None self._size_bytes = None @property def names(self): """ Gets the names of this V1ContainerImage. Names by which this image is known. e.g. [\"gcr.io/google_containers/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"] :return: The names of this V1ContainerImage. :rtype: list[str] """ return self._names @names.setter def names(self, names): """ Sets the names of this V1ContainerImage. Names by which this image is known. e.g. [\"gcr.io/google_containers/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"] :param names: The names of this V1ContainerImage. :type: list[str] """ self._names = names @property def size_bytes(self): """ Gets the size_bytes of this V1ContainerImage. The size of the image in bytes. :return: The size_bytes of this V1ContainerImage. :rtype: int """ return self._size_bytes @size_bytes.setter def size_bytes(self, size_bytes): """ Sets the size_bytes of this V1ContainerImage. The size of the image in bytes. :param size_bytes: The size_bytes of this V1ContainerImage. :type: int """ self._size_bytes = size_bytes def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_component_condition.py0000664000567000056710000001156413046233226027604 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ComponentCondition(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'type': 'str', 'status': 'str', 'message': 'str', 'error': 'str' } self.attribute_map = { 'type': 'type', 'status': 'status', 'message': 'message', 'error': 'error' } self._type = None self._status = None self._message = None self._error = None @property def type(self): """ Gets the type of this V1ComponentCondition. Type of condition for a component. Valid value: \"Healthy\" :return: The type of this V1ComponentCondition. :rtype: str """ return self._type @type.setter def type(self, type): """ Sets the type of this V1ComponentCondition. Type of condition for a component. Valid value: \"Healthy\" :param type: The type of this V1ComponentCondition. :type: str """ self._type = type @property def status(self): """ Gets the status of this V1ComponentCondition. Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\". :return: The status of this V1ComponentCondition. :rtype: str """ return self._status @status.setter def status(self, status): """ Sets the status of this V1ComponentCondition. Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\". :param status: The status of this V1ComponentCondition. :type: str """ self._status = status @property def message(self): """ Gets the message of this V1ComponentCondition. Message about the condition for a component. For example, information about a health check. :return: The message of this V1ComponentCondition. :rtype: str """ return self._message @message.setter def message(self, message): """ Sets the message of this V1ComponentCondition. Message about the condition for a component. For example, information about a health check. :param message: The message of this V1ComponentCondition. :type: str """ self._message = message @property def error(self): """ Gets the error of this V1ComponentCondition. Condition error code for a component. For example, a health check error code. :return: The error of this V1ComponentCondition. :rtype: str """ return self._error @error.setter def error(self, error): """ Sets the error of this V1ComponentCondition. Condition error code for a component. For example, a health check error code. :param error: The error of this V1ComponentCondition. :type: str """ self._error = error def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_endpoint_address.py0000664000567000056710000000675013046233226027062 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1EndpointAddress(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'ip': 'str', 'target_ref': 'V1ObjectReference' } self.attribute_map = { 'ip': 'ip', 'target_ref': 'targetRef' } self._ip = None self._target_ref = None @property def ip(self): """ Gets the ip of this V1EndpointAddress. The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). :return: The ip of this V1EndpointAddress. :rtype: str """ return self._ip @ip.setter def ip(self, ip): """ Sets the ip of this V1EndpointAddress. The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). :param ip: The ip of this V1EndpointAddress. :type: str """ self._ip = ip @property def target_ref(self): """ Gets the target_ref of this V1EndpointAddress. Reference to object providing the endpoint. :return: The target_ref of this V1EndpointAddress. :rtype: V1ObjectReference """ return self._target_ref @target_ref.setter def target_ref(self, target_ref): """ Sets the target_ref of this V1EndpointAddress. Reference to object providing the endpoint. :param target_ref: The target_ref of this V1EndpointAddress. :type: V1ObjectReference """ self._target_ref = target_ref def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_object_meta.py0000664000567000056710000004601013046233226026002 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ObjectMeta(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'generate_name': 'str', 'namespace': 'str', 'self_link': 'str', 'uid': 'str', 'resource_version': 'str', 'generation': 'int', 'creation_timestamp': 'str', 'deletion_timestamp': 'str', 'deletion_grace_period_seconds': 'int', 'labels': 'dict(str, str)', 'annotations': 'object' } self.attribute_map = { 'name': 'name', 'generate_name': 'generateName', 'namespace': 'namespace', 'self_link': 'selfLink', 'uid': 'uid', 'resource_version': 'resourceVersion', 'generation': 'generation', 'creation_timestamp': 'creationTimestamp', 'deletion_timestamp': 'deletionTimestamp', 'deletion_grace_period_seconds': 'deletionGracePeriodSeconds', 'labels': 'labels', 'annotations': 'annotations' } self._name = None self._generate_name = None self._namespace = None self._self_link = None self._uid = None self._resource_version = None self._generation = None self._creation_timestamp = None self._deletion_timestamp = None self._deletion_grace_period_seconds = None self._labels = None self._annotations = None @property def name(self): """ Gets the name of this V1ObjectMeta. Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :return: The name of this V1ObjectMeta. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1ObjectMeta. Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1ObjectMeta. :type: str """ self._name = name @property def generate_name(self): """ Gets the generate_name of this V1ObjectMeta. GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#idempotency :return: The generate_name of this V1ObjectMeta. :rtype: str """ return self._generate_name @generate_name.setter def generate_name(self, generate_name): """ Sets the generate_name of this V1ObjectMeta. GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#idempotency :param generate_name: The generate_name of this V1ObjectMeta. :type: str """ self._generate_name = generate_name @property def namespace(self): """ Gets the namespace of this V1ObjectMeta. Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md :return: The namespace of this V1ObjectMeta. :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): """ Sets the namespace of this V1ObjectMeta. Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md :param namespace: The namespace of this V1ObjectMeta. :type: str """ self._namespace = namespace @property def self_link(self): """ Gets the self_link of this V1ObjectMeta. SelfLink is a URL representing this object. Populated by the system. Read-only. :return: The self_link of this V1ObjectMeta. :rtype: str """ return self._self_link @self_link.setter def self_link(self, self_link): """ Sets the self_link of this V1ObjectMeta. SelfLink is a URL representing this object. Populated by the system. Read-only. :param self_link: The self_link of this V1ObjectMeta. :type: str """ self._self_link = self_link @property def uid(self): """ Gets the uid of this V1ObjectMeta. UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#uids :return: The uid of this V1ObjectMeta. :rtype: str """ return self._uid @uid.setter def uid(self, uid): """ Sets the uid of this V1ObjectMeta. UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#uids :param uid: The uid of this V1ObjectMeta. :type: str """ self._uid = uid @property def resource_version(self): """ Gets the resource_version of this V1ObjectMeta. An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency :return: The resource_version of this V1ObjectMeta. :rtype: str """ return self._resource_version @resource_version.setter def resource_version(self, resource_version): """ Sets the resource_version of this V1ObjectMeta. An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency :param resource_version: The resource_version of this V1ObjectMeta. :type: str """ self._resource_version = resource_version @property def generation(self): """ Gets the generation of this V1ObjectMeta. A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. :return: The generation of this V1ObjectMeta. :rtype: int """ return self._generation @generation.setter def generation(self, generation): """ Sets the generation of this V1ObjectMeta. A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. :param generation: The generation of this V1ObjectMeta. :type: int """ self._generation = generation @property def creation_timestamp(self): """ Gets the creation_timestamp of this V1ObjectMeta. CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The creation_timestamp of this V1ObjectMeta. :rtype: str """ return self._creation_timestamp @creation_timestamp.setter def creation_timestamp(self, creation_timestamp): """ Sets the creation_timestamp of this V1ObjectMeta. CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param creation_timestamp: The creation_timestamp of this V1ObjectMeta. :type: str """ self._creation_timestamp = creation_timestamp @property def deletion_timestamp(self): """ Gets the deletion_timestamp of this V1ObjectMeta. DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource will be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. Once the resource is deleted in the API, the Kubelet will send a hard termination signal to the container. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The deletion_timestamp of this V1ObjectMeta. :rtype: str """ return self._deletion_timestamp @deletion_timestamp.setter def deletion_timestamp(self, deletion_timestamp): """ Sets the deletion_timestamp of this V1ObjectMeta. DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource will be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. Once the resource is deleted in the API, the Kubelet will send a hard termination signal to the container. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param deletion_timestamp: The deletion_timestamp of this V1ObjectMeta. :type: str """ self._deletion_timestamp = deletion_timestamp @property def deletion_grace_period_seconds(self): """ Gets the deletion_grace_period_seconds of this V1ObjectMeta. Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. :return: The deletion_grace_period_seconds of this V1ObjectMeta. :rtype: int """ return self._deletion_grace_period_seconds @deletion_grace_period_seconds.setter def deletion_grace_period_seconds(self, deletion_grace_period_seconds): """ Sets the deletion_grace_period_seconds of this V1ObjectMeta. Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. :param deletion_grace_period_seconds: The deletion_grace_period_seconds of this V1ObjectMeta. :type: int """ self._deletion_grace_period_seconds = deletion_grace_period_seconds @property def labels(self): """ Gets the labels of this V1ObjectMeta. Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://releases.k8s.io/release-1.2/docs/user-guide/labels.md :return: The labels of this V1ObjectMeta. :rtype: object """ return self._labels @labels.setter def labels(self, labels): """ Sets the labels of this V1ObjectMeta. Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://releases.k8s.io/release-1.2/docs/user-guide/labels.md :param labels: The labels of this V1ObjectMeta. :type: object """ self._labels = labels @property def annotations(self): """ Gets the annotations of this V1ObjectMeta. Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://releases.k8s.io/release-1.2/docs/user-guide/annotations.md :return: The annotations of this V1ObjectMeta. :rtype: object """ return self._annotations @annotations.setter def annotations(self, annotations): """ Sets the annotations of this V1ObjectMeta. Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://releases.k8s.io/release-1.2/docs/user-guide/annotations.md :param annotations: The annotations of this V1ObjectMeta. :type: object """ self._annotations = annotations def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_container_state_running.py0000664000567000056710000000536713046233226030462 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ContainerStateRunning(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'started_at': 'str' } self.attribute_map = { 'started_at': 'startedAt' } self._started_at = None @property def started_at(self): """ Gets the started_at of this V1ContainerStateRunning. Time at which the container was last (re-)started :return: The started_at of this V1ContainerStateRunning. :rtype: str """ return self._started_at @started_at.setter def started_at(self, started_at): """ Sets the started_at of this V1ContainerStateRunning. Time at which the container was last (re-)started :param started_at: The started_at of this V1ContainerStateRunning. :type: str """ self._started_at = started_at def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_http_header.py0000664000567000056710000000614013046233226026015 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1HTTPHeader(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'value': 'str' } self.attribute_map = { 'name': 'name', 'value': 'value' } self._name = None self._value = None @property def name(self): """ Gets the name of this V1HTTPHeader. The header field name :return: The name of this V1HTTPHeader. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1HTTPHeader. The header field name :param name: The name of this V1HTTPHeader. :type: str """ self._name = name @property def value(self): """ Gets the value of this V1HTTPHeader. The header field value :return: The value of this V1HTTPHeader. :rtype: str """ return self._value @value.setter def value(self, value): """ Sets the value of this V1HTTPHeader. The header field value :param value: The value of this V1HTTPHeader. :type: str """ self._value = value def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_security_context.py0000664000567000056710000002141413046233226027142 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1SecurityContext(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'capabilities': 'V1Capabilities', 'privileged': 'bool', 'se_linux_options': 'V1SELinuxOptions', 'run_as_user': 'int', 'run_as_non_root': 'bool', 'read_only_root_filesystem': 'bool' } self.attribute_map = { 'capabilities': 'capabilities', 'privileged': 'privileged', 'se_linux_options': 'seLinuxOptions', 'run_as_user': 'runAsUser', 'run_as_non_root': 'runAsNonRoot', 'read_only_root_filesystem': 'readOnlyRootFilesystem' } self._capabilities = None self._privileged = None self._se_linux_options = None self._run_as_user = None self._run_as_non_root = None self._read_only_root_filesystem = None @property def capabilities(self): """ Gets the capabilities of this V1SecurityContext. The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. :return: The capabilities of this V1SecurityContext. :rtype: V1Capabilities """ return self._capabilities @capabilities.setter def capabilities(self, capabilities): """ Sets the capabilities of this V1SecurityContext. The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. :param capabilities: The capabilities of this V1SecurityContext. :type: V1Capabilities """ self._capabilities = capabilities @property def privileged(self): """ Gets the privileged of this V1SecurityContext. Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. :return: The privileged of this V1SecurityContext. :rtype: bool """ return self._privileged @privileged.setter def privileged(self, privileged): """ Sets the privileged of this V1SecurityContext. Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. :param privileged: The privileged of this V1SecurityContext. :type: bool """ self._privileged = privileged @property def se_linux_options(self): """ Gets the se_linux_options of this V1SecurityContext. The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :return: The se_linux_options of this V1SecurityContext. :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 V1SecurityContext. The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :param se_linux_options: The se_linux_options of this V1SecurityContext. :type: V1SELinuxOptions """ self._se_linux_options = se_linux_options @property def run_as_user(self): """ Gets the run_as_user of this V1SecurityContext. The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :return: The run_as_user of this V1SecurityContext. :rtype: int """ return self._run_as_user @run_as_user.setter def run_as_user(self, run_as_user): """ Sets the run_as_user of this V1SecurityContext. The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :param run_as_user: The run_as_user of this V1SecurityContext. :type: int """ self._run_as_user = run_as_user @property def run_as_non_root(self): """ Gets the run_as_non_root of this V1SecurityContext. Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :return: The run_as_non_root of this V1SecurityContext. :rtype: bool """ return self._run_as_non_root @run_as_non_root.setter def run_as_non_root(self, run_as_non_root): """ Sets the run_as_non_root of this V1SecurityContext. Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :param run_as_non_root: The run_as_non_root of this V1SecurityContext. :type: bool """ self._run_as_non_root = run_as_non_root @property def read_only_root_filesystem(self): """ Gets the read_only_root_filesystem of this V1SecurityContext. Whether this container has a read-only root filesystem. Default is false. :return: The read_only_root_filesystem of this V1SecurityContext. :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 V1SecurityContext. Whether this container has a read-only root filesystem. Default is false. :param read_only_root_filesystem: The read_only_root_filesystem of this V1SecurityContext. :type: bool """ self._read_only_root_filesystem = read_only_root_filesystem def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_scale_status.py0000664000567000056710000000760713046233226026231 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ScaleStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'replicas': 'int', 'selector': 'str' } self.attribute_map = { 'replicas': 'replicas', 'selector': 'selector' } self._replicas = None self._selector = None @property def replicas(self): """ Gets the replicas of this V1ScaleStatus. actual number of observed instances of the scaled object. :return: The replicas of this V1ScaleStatus. :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): """ Sets the replicas of this V1ScaleStatus. actual number of observed instances of the scaled object. :param replicas: The replicas of this V1ScaleStatus. :type: int """ self._replicas = replicas @property def selector(self): """ Gets the selector of this V1ScaleStatus. label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors :return: The selector of this V1ScaleStatus. :rtype: str """ return self._selector @selector.setter def selector(self, selector): """ Sets the selector of this V1ScaleStatus. label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors :param selector: The selector of this V1ScaleStatus. :type: str """ self._selector = selector def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_persistent_volume_claim_list.py0000664000567000056710000001414013046233226031514 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PersistentVolumeClaimList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'items': 'list[V1PersistentVolumeClaim]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'items': 'items' } self._kind = None self._api_version = None self._metadata = None self._items = None @property def kind(self): """ Gets the kind of this V1PersistentVolumeClaimList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1PersistentVolumeClaimList. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1PersistentVolumeClaimList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1PersistentVolumeClaimList. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1PersistentVolumeClaimList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1PersistentVolumeClaimList. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1PersistentVolumeClaimList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1PersistentVolumeClaimList. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1PersistentVolumeClaimList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1PersistentVolumeClaimList. :rtype: UnversionedListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1PersistentVolumeClaimList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1PersistentVolumeClaimList. :type: UnversionedListMeta """ self._metadata = metadata @property def items(self): """ Gets the items of this V1PersistentVolumeClaimList. A list of persistent volume claims. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :return: The items of this V1PersistentVolumeClaimList. :rtype: list[V1PersistentVolumeClaim] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1PersistentVolumeClaimList. A list of persistent volume claims. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :param items: The items of this V1PersistentVolumeClaimList. :type: list[V1PersistentVolumeClaim] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_object_field_selector.py0000664000567000056710000000705113046233226030041 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ObjectFieldSelector(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'api_version': 'str', 'field_path': 'str' } self.attribute_map = { 'api_version': 'apiVersion', 'field_path': 'fieldPath' } self._api_version = None self._field_path = None @property def api_version(self): """ Gets the api_version of this V1ObjectFieldSelector. Version of the schema the FieldPath is written in terms of, defaults to \"v1\". :return: The api_version of this V1ObjectFieldSelector. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1ObjectFieldSelector. Version of the schema the FieldPath is written in terms of, defaults to \"v1\". :param api_version: The api_version of this V1ObjectFieldSelector. :type: str """ self._api_version = api_version @property def field_path(self): """ Gets the field_path of this V1ObjectFieldSelector. Path of the field to select in the specified API version. :return: The field_path of this V1ObjectFieldSelector. :rtype: str """ return self._field_path @field_path.setter def field_path(self, field_path): """ Sets the field_path of this V1ObjectFieldSelector. Path of the field to select in the specified API version. :param field_path: The field_path of this V1ObjectFieldSelector. :type: str """ self._field_path = field_path def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_namespace.py0000664000567000056710000001512413046233226025464 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Namespace(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1NamespaceSpec', 'status': 'V1NamespaceStatus' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status' } self._kind = None self._api_version = None self._metadata = None self._spec = None self._status = None @property def kind(self): """ Gets the kind of this V1Namespace. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1Namespace. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1Namespace. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1Namespace. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1Namespace. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1Namespace. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1Namespace. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1Namespace. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1Namespace. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1Namespace. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1Namespace. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1Namespace. :type: V1ObjectMeta """ self._metadata = metadata @property def spec(self): """ Gets the spec of this V1Namespace. Spec defines the behavior of the Namespace. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V1Namespace. :rtype: V1NamespaceSpec """ return self._spec @spec.setter def spec(self, spec): """ Sets the spec of this V1Namespace. Spec defines the behavior of the Namespace. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V1Namespace. :type: V1NamespaceSpec """ self._spec = spec @property def status(self): """ Gets the status of this V1Namespace. Status describes the current status of a Namespace. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The status of this V1Namespace. :rtype: V1NamespaceStatus """ return self._status @status.setter def status(self, status): """ Sets the status of this V1Namespace. Status describes the current status of a Namespace. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param status: The status of this V1Namespace. :type: V1NamespaceStatus """ self._status = status def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_persistent_volume_claim.py0000664000567000056710000001615013046233226030464 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PersistentVolumeClaim(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1PersistentVolumeClaimSpec', 'status': 'V1PersistentVolumeClaimStatus' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status' } self._kind = None self._api_version = None self._metadata = None self._spec = None self._status = None @property def kind(self): """ Gets the kind of this V1PersistentVolumeClaim. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1PersistentVolumeClaim. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1PersistentVolumeClaim. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1PersistentVolumeClaim. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1PersistentVolumeClaim. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1PersistentVolumeClaim. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1PersistentVolumeClaim. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1PersistentVolumeClaim. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1PersistentVolumeClaim. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1PersistentVolumeClaim. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1PersistentVolumeClaim. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1PersistentVolumeClaim. :type: V1ObjectMeta """ self._metadata = metadata @property def spec(self): """ Gets the spec of this V1PersistentVolumeClaim. Spec defines the desired characteristics of a volume requested by a pod author. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :return: The spec of this V1PersistentVolumeClaim. :rtype: V1PersistentVolumeClaimSpec """ return self._spec @spec.setter def spec(self, spec): """ Sets the spec of this V1PersistentVolumeClaim. Spec defines the desired characteristics of a volume requested by a pod author. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :param spec: The spec of this V1PersistentVolumeClaim. :type: V1PersistentVolumeClaimSpec """ self._spec = spec @property def status(self): """ Gets the status of this V1PersistentVolumeClaim. Status represents the current information/status of a persistent volume claim. Read-only. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :return: The status of this V1PersistentVolumeClaim. :rtype: V1PersistentVolumeClaimStatus """ return self._status @status.setter def status(self, status): """ Sets the status of this V1PersistentVolumeClaim. Status represents the current information/status of a persistent volume claim. Read-only. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :param status: The status of this V1PersistentVolumeClaim. :type: V1PersistentVolumeClaimStatus """ self._status = status def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_glusterfs_volume_source.py0000664000567000056710000001132413046233226030513 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1GlusterfsVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'endpoints': 'str', 'path': 'str', 'read_only': 'bool' } self.attribute_map = { 'endpoints': 'endpoints', 'path': 'path', 'read_only': 'readOnly' } self._endpoints = None self._path = None self._read_only = None @property def endpoints(self): """ Gets the endpoints of this V1GlusterfsVolumeSource. EndpointsName is the endpoint name that details Glusterfs topology. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :return: The endpoints of this V1GlusterfsVolumeSource. :rtype: str """ return self._endpoints @endpoints.setter def endpoints(self, endpoints): """ Sets the endpoints of this V1GlusterfsVolumeSource. EndpointsName is the endpoint name that details Glusterfs topology. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :param endpoints: The endpoints of this V1GlusterfsVolumeSource. :type: str """ self._endpoints = endpoints @property def path(self): """ Gets the path of this V1GlusterfsVolumeSource. Path is the Glusterfs volume path. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :return: The path of this V1GlusterfsVolumeSource. :rtype: str """ return self._path @path.setter def path(self, path): """ Sets the path of this V1GlusterfsVolumeSource. Path is the Glusterfs volume path. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :param path: The path of this V1GlusterfsVolumeSource. :type: str """ self._path = path @property def read_only(self): """ Gets the read_only of this V1GlusterfsVolumeSource. ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :return: The read_only of this V1GlusterfsVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1GlusterfsVolumeSource. ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :param read_only: The read_only of this V1GlusterfsVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_resource_requirements.py0000664000567000056710000001014613046233226030161 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ResourceRequirements(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'limits': 'object', 'requests': 'object' } self.attribute_map = { 'limits': 'limits', 'requests': 'requests' } self._limits = None self._requests = None @property def limits(self): """ Gets the limits of this V1ResourceRequirements. Limits describes the maximum amount of compute resources allowed. More info: http://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications :return: The limits of this V1ResourceRequirements. :rtype: object """ return self._limits @limits.setter def limits(self, limits): """ Sets the limits of this V1ResourceRequirements. Limits describes the maximum amount of compute resources allowed. More info: http://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications :param limits: The limits of this V1ResourceRequirements. :type: object """ self._limits = limits @property def requests(self): """ Gets the requests of this V1ResourceRequirements. Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications :return: The requests of this V1ResourceRequirements. :rtype: object """ return self._requests @requests.setter def requests(self, requests): """ Sets the requests of this V1ResourceRequirements. Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications :param requests: The requests of this V1ResourceRequirements. :type: object """ self._requests = requests def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/__init__.py0000664000567000056710000001634713046233226024671 0ustar jenkinsjenkins00000000000000# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from __future__ import absolute_import # import models into model package from .v1_persistent_volume import V1PersistentVolume from .v1_tcp_socket_action import V1TCPSocketAction from .v1_resource_quota_status import V1ResourceQuotaStatus from .v1_container_state_terminated import V1ContainerStateTerminated from .v1_scale_spec import V1ScaleSpec from .v1_replication_controller_list import V1ReplicationControllerList from .v1_capability import V1Capability from .v1_pod import V1Pod from .v1_event import V1Event from .v1_node_daemon_endpoints import V1NodeDaemonEndpoints from .v1_host_path_volume_source import V1HostPathVolumeSource from .v1_config_map_key_selector import V1ConfigMapKeySelector from .v1_volume import V1Volume from .v1_container_state_running import V1ContainerStateRunning from .v1_config_map_volume_source import V1ConfigMapVolumeSource from .v1_delete_options import V1DeleteOptions from .v1_pod_template_spec import V1PodTemplateSpec from .v1_secret_list import V1SecretList from .v1_nfs_volume_source import V1NFSVolumeSource from .v1_ceph_fs_volume_source import V1CephFSVolumeSource from .v1_capabilities import V1Capabilities from .v1_component_condition import V1ComponentCondition from .unversioned_status import UnversionedStatus from .v1_service_status import V1ServiceStatus from .unversioned_status_details import UnversionedStatusDetails from .v1_secret_volume_source import V1SecretVolumeSource from .v1_resource_requirements import V1ResourceRequirements from .v1_persistent_volume_claim import V1PersistentVolumeClaim from .unversioned_patch import UnversionedPatch from .v1_namespace_status import V1NamespaceStatus from .v1_resource_quota_scope import V1ResourceQuotaScope from .v1_azure_file_volume_source import V1AzureFileVolumeSource from .v1_persistent_volume_access_mode import V1PersistentVolumeAccessMode from .v1_resource_quota_spec import V1ResourceQuotaSpec from .v1_persistent_volume_spec import V1PersistentVolumeSpec from .v1_exec_action import V1ExecAction from .v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource from .v1_service_spec import V1ServiceSpec from .v1_service_list import V1ServiceList from .v1_persistent_volume_list import V1PersistentVolumeList from .v1_container_status import V1ContainerStatus from .v1_handler import V1Handler from .v1_node_address import V1NodeAddress from .v1_fc_volume_source import V1FCVolumeSource from .v1_endpoint_port import V1EndpointPort from .v1_downward_api_volume_file import V1DownwardAPIVolumeFile from .v1_endpoint_subset import V1EndpointSubset from .v1_limit_range_list import V1LimitRangeList from .v1_container import V1Container from .v1_pod_spec import V1PodSpec from .v1_flocker_volume_source import V1FlockerVolumeSource from .v1_persistent_volume_status import V1PersistentVolumeStatus from .v1_rbd_volume_source import V1RBDVolumeSource from .v1_load_balancer_ingress import V1LoadBalancerIngress from .v1_security_context import V1SecurityContext from .v1_service_port import V1ServicePort from .v1_scale_status import V1ScaleStatus from .v1_namespace import V1Namespace from .v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource from .v1_endpoints_list import V1EndpointsList from .v1_node_list import V1NodeList from .v1_event_source import V1EventSource from .v1_http_header import V1HTTPHeader from .v1_key_to_path import V1KeyToPath from .v1_env_var_source import V1EnvVarSource from .unversioned_list_meta import UnversionedListMeta from .v1_limit_range_spec import V1LimitRangeSpec from .v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec from .v1_replication_controller import V1ReplicationController from .v1_namespace_list import V1NamespaceList from .v1_config_map_list import V1ConfigMapList from .integer import Integer from .v1_volume_mount import V1VolumeMount from .v1_node_status import V1NodeStatus from .v1_replication_controller_status import V1ReplicationControllerStatus from .v1_pod_condition import V1PodCondition from .v1_node_condition import V1NodeCondition from .v1_pod_security_context import V1PodSecurityContext from .v1_service_account import V1ServiceAccount from .v1_pod_template import V1PodTemplate from .v1_pod_list import V1PodList from .v1_empty_dir_volume_source import V1EmptyDirVolumeSource from .v1_node_spec import V1NodeSpec from .v1_http_get_action import V1HTTPGetAction from .v1_resource_quota_list import V1ResourceQuotaList from .v1_daemon_endpoint import V1DaemonEndpoint from .v1_service_account_list import V1ServiceAccountList from .v1_probe import V1Probe from .v1_namespace_spec import V1NamespaceSpec from .v1_iscsi_volume_source import V1ISCSIVolumeSource from .v1_event_list import V1EventList from .v1_load_balancer_status import V1LoadBalancerStatus from .v1_persistent_volume_claim_list import V1PersistentVolumeClaimList from .v1_component_status import V1ComponentStatus from .v1_git_repo_volume_source import V1GitRepoVolumeSource from .v1_object_meta import V1ObjectMeta from .v1_secret_key_selector import V1SecretKeySelector from .v1_local_object_reference import V1LocalObjectReference from .v1_config_map import V1ConfigMap from .v1_flex_volume_source import V1FlexVolumeSource from .v1_container_port import V1ContainerPort from .v1_secret import V1Secret from .v1_downward_api_volume_source import V1DownwardAPIVolumeSource from .v1_container_state import V1ContainerState from .v1_endpoints import V1Endpoints from .v1_cinder_volume_source import V1CinderVolumeSource from .v1_pod_status import V1PodStatus from .v1_se_linux_options import V1SELinuxOptions from .v1_service import V1Service from .v1_object_reference import V1ObjectReference from .v1_object_field_selector import V1ObjectFieldSelector from .v1_component_status_list import V1ComponentStatusList from .v1_lifecycle import V1Lifecycle from .v1_node_system_info import V1NodeSystemInfo from .json_watch_event import JsonWatchEvent from .v1_endpoint_address import V1EndpointAddress from .v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource from .v1_binding import V1Binding from .v1_node import V1Node from .v1_resource_quota import V1ResourceQuota from .v1_env_var import V1EnvVar from .v1_scale import V1Scale from .unversioned_status_cause import UnversionedStatusCause from .v1_replication_controller_spec import V1ReplicationControllerSpec from .v1_container_state_waiting import V1ContainerStateWaiting from .v1_pod_template_list import V1PodTemplateList from .v1_limit_range_item import V1LimitRangeItem from .v1_finalizer_name import V1FinalizerName from .v1_limit_range import V1LimitRange from .v1_glusterfs_volume_source import V1GlusterfsVolumeSource from .v1_container_image import V1ContainerImage from .v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus python-k8sclient-0.4.0/k8sclient/client/models/v1_event.py0000664000567000056710000002505713046233226024657 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Event(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'involved_object': 'V1ObjectReference', 'reason': 'str', 'message': 'str', 'source': 'V1EventSource', 'first_timestamp': 'str', 'last_timestamp': 'str', 'count': 'int', 'type': 'str' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'involved_object': 'involvedObject', 'reason': 'reason', 'message': 'message', 'source': 'source', 'first_timestamp': 'firstTimestamp', 'last_timestamp': 'lastTimestamp', 'count': 'count', 'type': 'type' } self._kind = None self._api_version = None self._metadata = None self._involved_object = None self._reason = None self._message = None self._source = None self._first_timestamp = None self._last_timestamp = None self._count = None self._type = None @property def kind(self): """ Gets the kind of this V1Event. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1Event. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1Event. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1Event. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1Event. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1Event. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1Event. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1Event. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1Event. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1Event. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1Event. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1Event. :type: V1ObjectMeta """ self._metadata = metadata @property def involved_object(self): """ Gets the involved_object of this V1Event. The object that this event is about. :return: The involved_object of this V1Event. :rtype: V1ObjectReference """ return self._involved_object @involved_object.setter def involved_object(self, involved_object): """ Sets the involved_object of this V1Event. The object that this event is about. :param involved_object: The involved_object of this V1Event. :type: V1ObjectReference """ self._involved_object = involved_object @property def reason(self): """ Gets the reason of this V1Event. This should be a short, machine understandable string that gives the reason for the transition into the object's current status. :return: The reason of this V1Event. :rtype: str """ return self._reason @reason.setter def reason(self, reason): """ Sets the reason of this V1Event. This should be a short, machine understandable string that gives the reason for the transition into the object's current status. :param reason: The reason of this V1Event. :type: str """ self._reason = reason @property def message(self): """ Gets the message of this V1Event. A human-readable description of the status of this operation. :return: The message of this V1Event. :rtype: str """ return self._message @message.setter def message(self, message): """ Sets the message of this V1Event. A human-readable description of the status of this operation. :param message: The message of this V1Event. :type: str """ self._message = message @property def source(self): """ Gets the source of this V1Event. The component reporting this event. Should be a short machine understandable string. :return: The source of this V1Event. :rtype: V1EventSource """ return self._source @source.setter def source(self, source): """ Sets the source of this V1Event. The component reporting this event. Should be a short machine understandable string. :param source: The source of this V1Event. :type: V1EventSource """ self._source = source @property def first_timestamp(self): """ Gets the first_timestamp of this V1Event. The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) :return: The first_timestamp of this V1Event. :rtype: str """ return self._first_timestamp @first_timestamp.setter def first_timestamp(self, first_timestamp): """ Sets the first_timestamp of this V1Event. The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) :param first_timestamp: The first_timestamp of this V1Event. :type: str """ self._first_timestamp = first_timestamp @property def last_timestamp(self): """ Gets the last_timestamp of this V1Event. The time at which the most recent occurrence of this event was recorded. :return: The last_timestamp of this V1Event. :rtype: str """ return self._last_timestamp @last_timestamp.setter def last_timestamp(self, last_timestamp): """ Sets the last_timestamp of this V1Event. The time at which the most recent occurrence of this event was recorded. :param last_timestamp: The last_timestamp of this V1Event. :type: str """ self._last_timestamp = last_timestamp @property def count(self): """ Gets the count of this V1Event. The number of times this event has occurred. :return: The count of this V1Event. :rtype: int """ return self._count @count.setter def count(self, count): """ Sets the count of this V1Event. The number of times this event has occurred. :param count: The count of this V1Event. :type: int """ self._count = count @property def type(self): """ Gets the type of this V1Event. Type of this event (Normal, Warning), new types could be added in the future :return: The type of this V1Event. :rtype: str """ return self._type @type.setter def type(self, type): """ Sets the type of this V1Event. Type of this event (Normal, Warning), new types could be added in the future :param type: The type of this V1Event. :type: str """ self._type = type def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_service_status.py0000664000567000056710000000556213046233226026600 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ServiceStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'load_balancer': 'V1LoadBalancerStatus' } self.attribute_map = { 'load_balancer': 'loadBalancer' } self._load_balancer = None @property def load_balancer(self): """ Gets the load_balancer of this V1ServiceStatus. LoadBalancer contains the current status of the load-balancer, if one is present. :return: The load_balancer of this V1ServiceStatus. :rtype: V1LoadBalancerStatus """ return self._load_balancer @load_balancer.setter def load_balancer(self, load_balancer): """ Sets the load_balancer of this V1ServiceStatus. LoadBalancer contains the current status of the load-balancer, if one is present. :param load_balancer: The load_balancer of this V1ServiceStatus. :type: V1LoadBalancerStatus """ self._load_balancer = load_balancer def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_service_account_list.py0000664000567000056710000001364613046233226027746 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ServiceAccountList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'items': 'list[V1ServiceAccount]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'items': 'items' } self._kind = None self._api_version = None self._metadata = None self._items = None @property def kind(self): """ Gets the kind of this V1ServiceAccountList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1ServiceAccountList. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1ServiceAccountList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1ServiceAccountList. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1ServiceAccountList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1ServiceAccountList. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1ServiceAccountList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1ServiceAccountList. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1ServiceAccountList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1ServiceAccountList. :rtype: UnversionedListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1ServiceAccountList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1ServiceAccountList. :type: UnversionedListMeta """ self._metadata = metadata @property def items(self): """ Gets the items of this V1ServiceAccountList. List of ServiceAccounts. More info: http://releases.k8s.io/release-1.2/docs/design/service_accounts.md#service-accounts :return: The items of this V1ServiceAccountList. :rtype: list[V1ServiceAccount] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1ServiceAccountList. List of ServiceAccounts. More info: http://releases.k8s.io/release-1.2/docs/design/service_accounts.md#service-accounts :param items: The items of this V1ServiceAccountList. :type: list[V1ServiceAccount] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_service_account.py0000664000567000056710000001704213046233226026705 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ServiceAccount(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'secrets': 'list[V1ObjectReference]', 'image_pull_secrets': 'list[V1LocalObjectReference]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'secrets': 'secrets', 'image_pull_secrets': 'imagePullSecrets' } self._kind = None self._api_version = None self._metadata = None self._secrets = None self._image_pull_secrets = None @property def kind(self): """ Gets the kind of this V1ServiceAccount. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1ServiceAccount. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1ServiceAccount. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1ServiceAccount. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1ServiceAccount. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1ServiceAccount. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1ServiceAccount. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1ServiceAccount. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1ServiceAccount. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1ServiceAccount. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1ServiceAccount. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1ServiceAccount. :type: V1ObjectMeta """ self._metadata = metadata @property def secrets(self): """ Gets the secrets of this V1ServiceAccount. Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: http://releases.k8s.io/release-1.2/docs/user-guide/secrets.md :return: The secrets of this V1ServiceAccount. :rtype: list[V1ObjectReference] """ return self._secrets @secrets.setter def secrets(self, secrets): """ Sets the secrets of this V1ServiceAccount. Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: http://releases.k8s.io/release-1.2/docs/user-guide/secrets.md :param secrets: The secrets of this V1ServiceAccount. :type: list[V1ObjectReference] """ self._secrets = secrets @property def image_pull_secrets(self): """ Gets the image_pull_secrets of this V1ServiceAccount. ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: http://releases.k8s.io/release-1.2/docs/user-guide/secrets.md#manually-specifying-an-imagepullsecret :return: The image_pull_secrets of this V1ServiceAccount. :rtype: list[V1LocalObjectReference] """ return self._image_pull_secrets @image_pull_secrets.setter def image_pull_secrets(self, image_pull_secrets): """ Sets the image_pull_secrets of this V1ServiceAccount. ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: http://releases.k8s.io/release-1.2/docs/user-guide/secrets.md#manually-specifying-an-imagepullsecret :param image_pull_secrets: The image_pull_secrets of this V1ServiceAccount. :type: list[V1LocalObjectReference] """ self._image_pull_secrets = image_pull_secrets def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_load_balancer_status.py0000664000567000056710000000566513046233226027712 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1LoadBalancerStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'ingress': 'list[V1LoadBalancerIngress]' } self.attribute_map = { 'ingress': 'ingress' } self._ingress = None @property def ingress(self): """ Gets the ingress of this V1LoadBalancerStatus. Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. :return: The ingress of this V1LoadBalancerStatus. :rtype: list[V1LoadBalancerIngress] """ return self._ingress @ingress.setter def ingress(self, ingress): """ Sets the ingress of this V1LoadBalancerStatus. Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. :param ingress: The ingress of this V1LoadBalancerStatus. :type: list[V1LoadBalancerIngress] """ self._ingress = ingress def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_cinder_volume_source.py0000664000567000056710000001165313046233226027746 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1CinderVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'volume_id': 'str', 'fs_type': 'str', 'read_only': 'bool' } self.attribute_map = { 'volume_id': 'volumeID', 'fs_type': 'fsType', 'read_only': 'readOnly' } self._volume_id = None self._fs_type = None self._read_only = None @property def volume_id(self): """ Gets the volume_id of this V1CinderVolumeSource. volume id used to identify the volume in cinder More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :return: The volume_id of this V1CinderVolumeSource. :rtype: str """ return self._volume_id @volume_id.setter def volume_id(self, volume_id): """ Sets the volume_id of this V1CinderVolumeSource. volume id used to identify the volume in cinder More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :param volume_id: The volume_id of this V1CinderVolumeSource. :type: str """ self._volume_id = volume_id @property def fs_type(self): """ Gets the fs_type of this V1CinderVolumeSource. Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :return: The fs_type of this V1CinderVolumeSource. :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): """ Sets the fs_type of this V1CinderVolumeSource. Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :param fs_type: The fs_type of this V1CinderVolumeSource. :type: str """ self._fs_type = fs_type @property def read_only(self): """ Gets the read_only of this V1CinderVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :return: The read_only of this V1CinderVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1CinderVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :param read_only: The read_only of this V1CinderVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_node_list.py0000664000567000056710000001301213046233226025502 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1NodeList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'items': 'list[V1Node]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'items': 'items' } self._kind = None self._api_version = None self._metadata = None self._items = None @property def kind(self): """ Gets the kind of this V1NodeList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1NodeList. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1NodeList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1NodeList. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1NodeList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1NodeList. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1NodeList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1NodeList. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1NodeList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1NodeList. :rtype: UnversionedListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1NodeList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1NodeList. :type: UnversionedListMeta """ self._metadata = metadata @property def items(self): """ Gets the items of this V1NodeList. List of nodes :return: The items of this V1NodeList. :rtype: list[V1Node] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1NodeList. List of nodes :param items: The items of this V1NodeList. :type: list[V1Node] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_tcp_socket_action.py0000664000567000056710000000542213046233226027223 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1TCPSocketAction(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'port': 'str' } self.attribute_map = { 'port': 'port' } self._port = None @property def port(self): """ Gets the port of this V1TCPSocketAction. Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. :return: The port of this V1TCPSocketAction. :rtype: str """ return self._port @port.setter def port(self, port): """ Sets the port of this V1TCPSocketAction. Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. :param port: The port of this V1TCPSocketAction. :type: str """ self._port = port def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_nfs_volume_source.py0000664000567000056710000001077413046233226027273 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1NFSVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'server': 'str', 'path': 'str', 'read_only': 'bool' } self.attribute_map = { 'server': 'server', 'path': 'path', 'read_only': 'readOnly' } self._server = None self._path = None self._read_only = None @property def server(self): """ Gets the server of this V1NFSVolumeSource. Server is the hostname or IP address of the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :return: The server of this V1NFSVolumeSource. :rtype: str """ return self._server @server.setter def server(self, server): """ Sets the server of this V1NFSVolumeSource. Server is the hostname or IP address of the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :param server: The server of this V1NFSVolumeSource. :type: str """ self._server = server @property def path(self): """ Gets the path of this V1NFSVolumeSource. Path that is exported by the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :return: The path of this V1NFSVolumeSource. :rtype: str """ return self._path @path.setter def path(self, path): """ Sets the path of this V1NFSVolumeSource. Path that is exported by the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :param path: The path of this V1NFSVolumeSource. :type: str """ self._path = path @property def read_only(self): """ Gets the read_only of this V1NFSVolumeSource. ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :return: The read_only of this V1NFSVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1NFSVolumeSource. ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :param read_only: The read_only of this V1NFSVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_endpoints.py0000664000567000056710000001475213046233226025541 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Endpoints(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'subsets': 'list[V1EndpointSubset]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'subsets': 'subsets' } self._kind = None self._api_version = None self._metadata = None self._subsets = None @property def kind(self): """ Gets the kind of this V1Endpoints. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1Endpoints. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1Endpoints. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1Endpoints. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1Endpoints. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1Endpoints. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1Endpoints. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1Endpoints. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1Endpoints. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1Endpoints. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1Endpoints. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1Endpoints. :type: V1ObjectMeta """ self._metadata = metadata @property def subsets(self): """ Gets the subsets of this V1Endpoints. The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. :return: The subsets of this V1Endpoints. :rtype: list[V1EndpointSubset] """ return self._subsets @subsets.setter def subsets(self, subsets): """ Sets the subsets of this V1Endpoints. The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. :param subsets: The subsets of this V1Endpoints. :type: list[V1EndpointSubset] """ self._subsets = subsets def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_persistent_volume_claim_spec.py0000664000567000056710000001167213046233226031502 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PersistentVolumeClaimSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'access_modes': 'list[V1PersistentVolumeAccessMode]', 'resources': 'V1ResourceRequirements', 'volume_name': 'str' } self.attribute_map = { 'access_modes': 'accessModes', 'resources': 'resources', 'volume_name': 'volumeName' } self._access_modes = None self._resources = None self._volume_name = None @property def access_modes(self): """ Gets the access_modes of this V1PersistentVolumeClaimSpec. AccessModes contains the desired access modes the volume should have. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#access-modes-1 :return: The access_modes of this V1PersistentVolumeClaimSpec. :rtype: list[V1PersistentVolumeAccessMode] """ return self._access_modes @access_modes.setter def access_modes(self, access_modes): """ Sets the access_modes of this V1PersistentVolumeClaimSpec. AccessModes contains the desired access modes the volume should have. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#access-modes-1 :param access_modes: The access_modes of this V1PersistentVolumeClaimSpec. :type: list[V1PersistentVolumeAccessMode] """ self._access_modes = access_modes @property def resources(self): """ Gets the resources of this V1PersistentVolumeClaimSpec. Resources represents the minimum resources the volume should have. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#resources :return: The resources of this V1PersistentVolumeClaimSpec. :rtype: V1ResourceRequirements """ return self._resources @resources.setter def resources(self, resources): """ Sets the resources of this V1PersistentVolumeClaimSpec. Resources represents the minimum resources the volume should have. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#resources :param resources: The resources of this V1PersistentVolumeClaimSpec. :type: V1ResourceRequirements """ self._resources = resources @property def volume_name(self): """ Gets the volume_name of this V1PersistentVolumeClaimSpec. VolumeName is the binding reference to the PersistentVolume backing this claim. :return: The volume_name of this V1PersistentVolumeClaimSpec. :rtype: str """ return self._volume_name @volume_name.setter def volume_name(self, volume_name): """ Sets the volume_name of this V1PersistentVolumeClaimSpec. VolumeName is the binding reference to the PersistentVolume backing this claim. :param volume_name: The volume_name of this V1PersistentVolumeClaimSpec. :type: str """ self._volume_name = volume_name def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/0000775000567000056710000000000013046233470023627 5ustar jenkinsjenkins00000000000000python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_key_to_path.py0000664000567000056710000000646713046233226027131 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1KeyToPath(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'key': 'str', 'path': 'str' } self.attribute_map = { 'key': 'key', 'path': 'path' } self._key = None self._path = None @property def key(self): """ Gets the key of this V1KeyToPath. The key to project. :return: The key of this V1KeyToPath. :rtype: str """ return self._key @key.setter def key(self, key): """ Sets the key of this V1KeyToPath. The key to project. :param key: The key of this V1KeyToPath. :type: str """ self._key = key @property def path(self): """ Gets the path of this V1KeyToPath. The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. :return: The path of this V1KeyToPath. :rtype: str """ return self._path @path.setter def path(self, path): """ Sets the path of this V1KeyToPath. The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. :param path: The path of this V1KeyToPath. :type: str """ self._path = path def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_pod_spec.py0000664000567000056710000004331313046233226026406 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PodSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'volumes': 'list[V1Volume]', 'containers': 'list[V1Container]', 'restart_policy': 'str', 'termination_grace_period_seconds': 'int', 'active_deadline_seconds': 'int', 'dns_policy': 'str', 'node_selector': 'object', 'service_account_name': 'str', 'service_account': 'str', 'node_name': 'str', 'host_network': 'bool', 'host_pid': 'bool', 'host_ipc': 'bool', 'security_context': 'V1PodSecurityContext', 'image_pull_secrets': 'list[V1LocalObjectReference]' } self.attribute_map = { 'volumes': 'volumes', 'containers': 'containers', 'restart_policy': 'restartPolicy', 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', 'active_deadline_seconds': 'activeDeadlineSeconds', 'dns_policy': 'dnsPolicy', 'node_selector': 'nodeSelector', 'service_account_name': 'serviceAccountName', 'service_account': 'serviceAccount', 'node_name': 'nodeName', 'host_network': 'hostNetwork', 'host_pid': 'hostPID', 'host_ipc': 'hostIPC', 'security_context': 'securityContext', 'image_pull_secrets': 'imagePullSecrets' } self._volumes = None self._containers = None self._restart_policy = None self._termination_grace_period_seconds = None self._active_deadline_seconds = None self._dns_policy = None self._node_selector = None self._service_account_name = None self._service_account = None self._node_name = None self._host_network = None self._host_pid = None self._host_ipc = None self._security_context = None self._image_pull_secrets = None @property def volumes(self): """ Gets the volumes of this V1PodSpec. List of volumes that can be mounted by containers belonging to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md :return: The volumes of this V1PodSpec. :rtype: list[V1Volume] """ return self._volumes @volumes.setter def volumes(self, volumes): """ Sets the volumes of this V1PodSpec. List of volumes that can be mounted by containers belonging to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md :param volumes: The volumes of this V1PodSpec. :type: list[V1Volume] """ self._volumes = volumes @property def containers(self): """ Gets the containers of this V1PodSpec. List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md :return: The containers of this V1PodSpec. :rtype: list[V1Container] """ return self._containers @containers.setter def containers(self, containers): """ Sets the containers of this V1PodSpec. List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md :param containers: The containers of this V1PodSpec. :type: list[V1Container] """ self._containers = containers @property def restart_policy(self): """ Gets the restart_policy of this V1PodSpec. Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#restartpolicy :return: The restart_policy of this V1PodSpec. :rtype: str """ return self._restart_policy @restart_policy.setter def restart_policy(self, restart_policy): """ Sets the restart_policy of this V1PodSpec. Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#restartpolicy :param restart_policy: The restart_policy of this V1PodSpec. :type: str """ self._restart_policy = restart_policy @property def termination_grace_period_seconds(self): """ Gets the termination_grace_period_seconds of this V1PodSpec. Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. :return: The termination_grace_period_seconds of this V1PodSpec. :rtype: int """ return self._termination_grace_period_seconds @termination_grace_period_seconds.setter def termination_grace_period_seconds(self, termination_grace_period_seconds): """ Sets the termination_grace_period_seconds of this V1PodSpec. Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. :param termination_grace_period_seconds: The termination_grace_period_seconds of this V1PodSpec. :type: int """ self._termination_grace_period_seconds = termination_grace_period_seconds @property def active_deadline_seconds(self): """ Gets the active_deadline_seconds of this V1PodSpec. Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. :return: The active_deadline_seconds of this V1PodSpec. :rtype: int """ return self._active_deadline_seconds @active_deadline_seconds.setter def active_deadline_seconds(self, active_deadline_seconds): """ Sets the active_deadline_seconds of this V1PodSpec. Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. :param active_deadline_seconds: The active_deadline_seconds of this V1PodSpec. :type: int """ self._active_deadline_seconds = active_deadline_seconds @property def dns_policy(self): """ Gets the dns_policy of this V1PodSpec. 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 """ return self._dns_policy @dns_policy.setter def dns_policy(self, dns_policy): """ Sets the dns_policy of this V1PodSpec. 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 """ self._dns_policy = dns_policy @property def node_selector(self): """ Gets the node_selector of this V1PodSpec. NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: http://releases.k8s.io/release-1.2/docs/user-guide/node-selection/README.md :return: The node_selector of this V1PodSpec. :rtype: object """ return self._node_selector @node_selector.setter def node_selector(self, node_selector): """ Sets the node_selector of this V1PodSpec. NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: http://releases.k8s.io/release-1.2/docs/user-guide/node-selection/README.md :param node_selector: The node_selector of this V1PodSpec. :type: object """ self._node_selector = node_selector @property def service_account_name(self): """ Gets the service_account_name of this V1PodSpec. ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/release-1.2/docs/design/service_accounts.md :return: The service_account_name of this V1PodSpec. :rtype: str """ return self._service_account_name @service_account_name.setter def service_account_name(self, service_account_name): """ Sets the service_account_name of this V1PodSpec. ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/release-1.2/docs/design/service_accounts.md :param service_account_name: The service_account_name of this V1PodSpec. :type: str """ self._service_account_name = service_account_name @property def service_account(self): """ Gets the service_account of this V1PodSpec. DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. :return: The service_account of this V1PodSpec. :rtype: str """ return self._service_account @service_account.setter def service_account(self, service_account): """ Sets the service_account of this V1PodSpec. DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. :param service_account: The service_account of this V1PodSpec. :type: str """ self._service_account = service_account @property def node_name(self): """ Gets the node_name of this V1PodSpec. NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. :return: The node_name of this V1PodSpec. :rtype: str """ return self._node_name @node_name.setter def node_name(self, node_name): """ Sets the node_name of this V1PodSpec. NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. :param node_name: The node_name of this V1PodSpec. :type: str """ self._node_name = node_name @property def host_network(self): """ Gets the host_network of this V1PodSpec. Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. :return: The host_network of this V1PodSpec. :rtype: bool """ return self._host_network @host_network.setter def host_network(self, host_network): """ Sets the host_network of this V1PodSpec. Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. :param host_network: The host_network of this V1PodSpec. :type: bool """ self._host_network = host_network @property def host_pid(self): """ Gets the host_pid of this V1PodSpec. Use the host's pid namespace. Optional: Default to false. :return: The host_pid of this V1PodSpec. :rtype: bool """ return self._host_pid @host_pid.setter def host_pid(self, host_pid): """ Sets the host_pid of this V1PodSpec. Use the host's pid namespace. Optional: Default to false. :param host_pid: The host_pid of this V1PodSpec. :type: bool """ self._host_pid = host_pid @property def host_ipc(self): """ Gets the host_ipc of this V1PodSpec. Use the host's ipc namespace. Optional: Default to false. :return: The host_ipc of this V1PodSpec. :rtype: bool """ return self._host_ipc @host_ipc.setter def host_ipc(self, host_ipc): """ Sets the host_ipc of this V1PodSpec. Use the host's ipc namespace. Optional: Default to false. :param host_ipc: The host_ipc of this V1PodSpec. :type: bool """ self._host_ipc = host_ipc @property def security_context(self): """ Gets the security_context of this V1PodSpec. SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. :return: The security_context of this V1PodSpec. :rtype: V1PodSecurityContext """ return self._security_context @security_context.setter def security_context(self, security_context): """ Sets the security_context of this V1PodSpec. SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. :param security_context: The security_context of this V1PodSpec. :type: V1PodSecurityContext """ self._security_context = security_context @property def image_pull_secrets(self): """ Gets the image_pull_secrets of this V1PodSpec. ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md#specifying-imagepullsecrets-on-a-pod :return: The image_pull_secrets of this V1PodSpec. :rtype: list[V1LocalObjectReference] """ return self._image_pull_secrets @image_pull_secrets.setter def image_pull_secrets(self, image_pull_secrets): """ Sets the image_pull_secrets of this V1PodSpec. ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md#specifying-imagepullsecrets-on-a-pod :param image_pull_secrets: The image_pull_secrets of this V1PodSpec. :type: list[V1LocalObjectReference] """ self._image_pull_secrets = image_pull_secrets def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_container.py0000664000567000056710000005173213046233226026600 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Container(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'image': 'str', 'command': 'list[str]', 'args': 'list[str]', 'working_dir': 'str', 'ports': 'list[V1ContainerPort]', 'env': 'list[V1EnvVar]', 'resources': 'V1ResourceRequirements', 'volume_mounts': 'list[V1VolumeMount]', 'liveness_probe': 'V1Probe', 'readiness_probe': 'V1Probe', 'lifecycle': 'V1Lifecycle', 'termination_message_path': 'str', 'image_pull_policy': 'str', 'security_context': 'V1SecurityContext', 'stdin': 'bool', 'stdin_once': 'bool', 'tty': 'bool' } self.attribute_map = { 'name': 'name', 'image': 'image', 'command': 'command', 'args': 'args', 'working_dir': 'workingDir', 'ports': 'ports', 'env': 'env', 'resources': 'resources', 'volume_mounts': 'volumeMounts', 'liveness_probe': 'livenessProbe', 'readiness_probe': 'readinessProbe', 'lifecycle': 'lifecycle', 'termination_message_path': 'terminationMessagePath', 'image_pull_policy': 'imagePullPolicy', 'security_context': 'securityContext', 'stdin': 'stdin', 'stdin_once': 'stdinOnce', 'tty': 'tty' } self._name = None self._image = None self._command = None self._args = None self._working_dir = None self._ports = None self._env = None self._resources = None self._volume_mounts = None self._liveness_probe = None self._readiness_probe = None self._lifecycle = None self._termination_message_path = None self._image_pull_policy = None self._security_context = None self._stdin = None self._stdin_once = None self._tty = None @property def name(self): """ Gets the name of this V1Container. Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. :return: The name of this V1Container. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1Container. Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. :param name: The name of this V1Container. :type: str """ self._name = name @property def image(self): """ Gets the image of this V1Container. Docker image name. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md :return: The image of this V1Container. :rtype: str """ return self._image @image.setter def image(self, image): """ Sets the image of this V1Container. Docker image name. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md :param image: The image of this V1Container. :type: str """ self._image = image @property def command(self): """ Gets the command of this V1Container. Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands :return: The command of this V1Container. :rtype: list[str] """ return self._command @command.setter def command(self, command): """ Sets the command of this V1Container. Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands :param command: The command of this V1Container. :type: list[str] """ self._command = command @property def args(self): """ Gets the args of this V1Container. Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands :return: The args of this V1Container. :rtype: list[str] """ return self._args @args.setter def args(self, args): """ Sets the args of this V1Container. Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands :param args: The args of this V1Container. :type: list[str] """ self._args = args @property def working_dir(self): """ Gets the working_dir of this V1Container. Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. :return: The working_dir of this V1Container. :rtype: str """ return self._working_dir @working_dir.setter def working_dir(self, working_dir): """ Sets the working_dir of this V1Container. Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. :param working_dir: The working_dir of this V1Container. :type: str """ self._working_dir = working_dir @property def ports(self): """ Gets the ports of this V1Container. List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. :return: The ports of this V1Container. :rtype: list[V1ContainerPort] """ return self._ports @ports.setter def ports(self, ports): """ Sets the ports of this V1Container. List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. :param ports: The ports of this V1Container. :type: list[V1ContainerPort] """ self._ports = ports @property def env(self): """ Gets the env of this V1Container. List of environment variables to set in the container. Cannot be updated. :return: The env of this V1Container. :rtype: list[V1EnvVar] """ return self._env @env.setter def env(self, env): """ Sets the env of this V1Container. List of environment variables to set in the container. Cannot be updated. :param env: The env of this V1Container. :type: list[V1EnvVar] """ self._env = env @property def resources(self): """ Gets the resources of this V1Container. Compute Resources required by this container. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#resources :return: The resources of this V1Container. :rtype: V1ResourceRequirements """ return self._resources @resources.setter def resources(self, resources): """ Sets the resources of this V1Container. Compute Resources required by this container. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#resources :param resources: The resources of this V1Container. :type: V1ResourceRequirements """ self._resources = resources @property def volume_mounts(self): """ Gets the volume_mounts of this V1Container. Pod volumes to mount into the container's filesyste. Cannot be updated. :return: The volume_mounts of this V1Container. :rtype: list[V1VolumeMount] """ return self._volume_mounts @volume_mounts.setter def volume_mounts(self, volume_mounts): """ Sets the volume_mounts of this V1Container. Pod volumes to mount into the container's filesyste. Cannot be updated. :param volume_mounts: The volume_mounts of this V1Container. :type: list[V1VolumeMount] """ self._volume_mounts = volume_mounts @property def liveness_probe(self): """ Gets the liveness_probe of this V1Container. Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :return: The liveness_probe of this V1Container. :rtype: V1Probe """ return self._liveness_probe @liveness_probe.setter def liveness_probe(self, liveness_probe): """ Sets the liveness_probe of this V1Container. Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :param liveness_probe: The liveness_probe of this V1Container. :type: V1Probe """ self._liveness_probe = liveness_probe @property def readiness_probe(self): """ Gets the readiness_probe of this V1Container. Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :return: The readiness_probe of this V1Container. :rtype: V1Probe """ return self._readiness_probe @readiness_probe.setter def readiness_probe(self, readiness_probe): """ Sets the readiness_probe of this V1Container. Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :param readiness_probe: The readiness_probe of this V1Container. :type: V1Probe """ self._readiness_probe = readiness_probe @property def lifecycle(self): """ Gets the lifecycle of this V1Container. Actions that the management system should take in response to container lifecycle events. Cannot be updated. :return: The lifecycle of this V1Container. :rtype: V1Lifecycle """ return self._lifecycle @lifecycle.setter def lifecycle(self, lifecycle): """ Sets the lifecycle of this V1Container. Actions that the management system should take in response to container lifecycle events. Cannot be updated. :param lifecycle: The lifecycle of this V1Container. :type: V1Lifecycle """ self._lifecycle = lifecycle @property 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. Defaults to /dev/termination-log. Cannot be updated. :return: The termination_message_path of this V1Container. :rtype: str """ return self._termination_message_path @termination_message_path.setter def termination_message_path(self, termination_message_path): """ Sets the termination_message_path of this V1Container. Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Defaults to /dev/termination-log. Cannot be updated. :param termination_message_path: The termination_message_path of this V1Container. :type: str """ self._termination_message_path = termination_message_path @property def image_pull_policy(self): """ Gets the image_pull_policy of this V1Container. Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md#updating-images :return: The image_pull_policy of this V1Container. :rtype: str """ return self._image_pull_policy @image_pull_policy.setter def image_pull_policy(self, image_pull_policy): """ Sets the image_pull_policy of this V1Container. Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md#updating-images :param image_pull_policy: The image_pull_policy of this V1Container. :type: str """ self._image_pull_policy = image_pull_policy @property def security_context(self): """ Gets the security_context of this V1Container. Security options the pod should run with. More info: http://releases.k8s.io/release-1.2/docs/design/security_context.md :return: The security_context of this V1Container. :rtype: V1SecurityContext """ return self._security_context @security_context.setter def security_context(self, security_context): """ Sets the security_context of this V1Container. Security options the pod should run with. More info: http://releases.k8s.io/release-1.2/docs/design/security_context.md :param security_context: The security_context of this V1Container. :type: V1SecurityContext """ self._security_context = security_context @property def stdin(self): """ Gets the stdin of this V1Container. Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. :return: The stdin of this V1Container. :rtype: bool """ return self._stdin @stdin.setter def stdin(self, stdin): """ Sets the stdin of this V1Container. Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. :param stdin: The stdin of this V1Container. :type: bool """ self._stdin = stdin @property def stdin_once(self): """ Gets the stdin_once of this V1Container. Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false :return: The stdin_once of this V1Container. :rtype: bool """ return self._stdin_once @stdin_once.setter def stdin_once(self, stdin_once): """ Sets the stdin_once of this V1Container. Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false :param stdin_once: The stdin_once of this V1Container. :type: bool """ self._stdin_once = stdin_once @property def tty(self): """ Gets the tty of this V1Container. Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. :return: The tty of this V1Container. :rtype: bool """ return self._tty @tty.setter def tty(self, tty): """ Sets the tty of this V1Container. Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. :param tty: The tty of this V1Container. :type: bool """ self._tty = tty def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/unversioned_status_cause.py0000664000567000056710000001174313046233226031332 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class UnversionedStatusCause(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'reason': 'str', 'message': 'str', 'field': 'str' } self.attribute_map = { 'reason': 'reason', 'message': 'message', 'field': 'field' } self._reason = None self._message = None self._field = None @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 @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 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.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\" :return: The field of this 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.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\" :param field: The field of this UnversionedStatusCause. :type: str """ self._field = field def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_rbd_volume_source.py0000664000567000056710000002203013046233226030321 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1RBDVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'monitors': 'list[str]', 'image': 'str', 'fs_type': 'str', 'pool': 'str', 'user': 'str', 'keyring': 'str', 'secret_ref': 'V1LocalObjectReference', 'read_only': 'bool' } self.attribute_map = { 'monitors': 'monitors', 'image': 'image', 'fs_type': 'fsType', 'pool': 'pool', 'user': 'user', 'keyring': 'keyring', 'secret_ref': 'secretRef', 'read_only': 'readOnly' } self._monitors = None self._image = None self._fs_type = None self._pool = None self._user = None self._keyring = None self._secret_ref = None self._read_only = None @property def monitors(self): """ Gets the monitors of this V1RBDVolumeSource. A collection of Ceph monitors. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The monitors of this V1RBDVolumeSource. :rtype: list[str] """ return self._monitors @monitors.setter def monitors(self, monitors): """ Sets the monitors of this V1RBDVolumeSource. A collection of Ceph monitors. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param monitors: The monitors of this V1RBDVolumeSource. :type: list[str] """ self._monitors = monitors @property def image(self): """ Gets the image of this V1RBDVolumeSource. The rados image name. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The image of this V1RBDVolumeSource. :rtype: str """ return self._image @image.setter def image(self, image): """ Sets the image of this V1RBDVolumeSource. The rados image name. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param image: The image of this V1RBDVolumeSource. :type: str """ self._image = image @property def fs_type(self): """ Gets the fs_type of this V1RBDVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#rbd :return: The fs_type of this V1RBDVolumeSource. :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): """ Sets the fs_type of this V1RBDVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#rbd :param fs_type: The fs_type of this V1RBDVolumeSource. :type: str """ self._fs_type = fs_type @property def pool(self): """ Gets the pool of this V1RBDVolumeSource. The rados pool name. Default is rbd. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it. :return: The pool of this V1RBDVolumeSource. :rtype: str """ return self._pool @pool.setter def pool(self, pool): """ Sets the pool of this V1RBDVolumeSource. The rados pool name. Default is rbd. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it. :param pool: The pool of this V1RBDVolumeSource. :type: str """ self._pool = pool @property def user(self): """ Gets the user of this V1RBDVolumeSource. The rados user name. Default is admin. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The user of this V1RBDVolumeSource. :rtype: str """ return self._user @user.setter def user(self, user): """ Sets the user of this V1RBDVolumeSource. The rados user name. Default is admin. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param user: The user of this V1RBDVolumeSource. :type: str """ self._user = user @property def keyring(self): """ Gets the keyring of this V1RBDVolumeSource. Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The keyring of this V1RBDVolumeSource. :rtype: str """ return self._keyring @keyring.setter def keyring(self, keyring): """ Sets the keyring of this V1RBDVolumeSource. Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param keyring: The keyring of this V1RBDVolumeSource. :type: str """ self._keyring = keyring @property def secret_ref(self): """ Gets the secret_ref of this V1RBDVolumeSource. SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is empty. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The secret_ref of this V1RBDVolumeSource. :rtype: V1LocalObjectReference """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): """ Sets the secret_ref of this V1RBDVolumeSource. SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is empty. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param secret_ref: The secret_ref of this V1RBDVolumeSource. :type: V1LocalObjectReference """ self._secret_ref = secret_ref @property def read_only(self): """ Gets the read_only of this V1RBDVolumeSource. ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The read_only of this V1RBDVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1RBDVolumeSource. ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param read_only: The read_only of this V1RBDVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/unversioned_patch.py0000664000567000056710000000404413046233226027722 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class UnversionedPatch(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { } self.attribute_map = { } def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_persistent_volume_claim_volume_source.py0000664000567000056710000000762613046233226034524 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PersistentVolumeClaimVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'claim_name': 'str', 'read_only': 'bool' } self.attribute_map = { 'claim_name': 'claimName', 'read_only': 'readOnly' } self._claim_name = None self._read_only = None @property def claim_name(self): """ Gets the claim_name of this V1PersistentVolumeClaimVolumeSource. ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :return: The claim_name of this V1PersistentVolumeClaimVolumeSource. :rtype: str """ return self._claim_name @claim_name.setter def claim_name(self, claim_name): """ Sets the claim_name of this V1PersistentVolumeClaimVolumeSource. ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :param claim_name: The claim_name of this V1PersistentVolumeClaimVolumeSource. :type: str """ self._claim_name = claim_name @property def read_only(self): """ Gets the read_only of this V1PersistentVolumeClaimVolumeSource. Will force the ReadOnly setting in VolumeMounts. Default false. :return: The read_only of this V1PersistentVolumeClaimVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1PersistentVolumeClaimVolumeSource. Will force the ReadOnly setting in VolumeMounts. Default false. :param read_only: The read_only of this V1PersistentVolumeClaimVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_object_meta.py0000664000567000056710000004601013046233226027063 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ObjectMeta(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'generate_name': 'str', 'namespace': 'str', 'self_link': 'str', 'uid': 'str', 'resource_version': 'str', 'generation': 'int', 'creation_timestamp': 'str', 'deletion_timestamp': 'str', 'deletion_grace_period_seconds': 'int', 'labels': 'dict(str, str)', 'annotations': 'object' } self.attribute_map = { 'name': 'name', 'generate_name': 'generateName', 'namespace': 'namespace', 'self_link': 'selfLink', 'uid': 'uid', 'resource_version': 'resourceVersion', 'generation': 'generation', 'creation_timestamp': 'creationTimestamp', 'deletion_timestamp': 'deletionTimestamp', 'deletion_grace_period_seconds': 'deletionGracePeriodSeconds', 'labels': 'labels', 'annotations': 'annotations' } self._name = None self._generate_name = None self._namespace = None self._self_link = None self._uid = None self._resource_version = None self._generation = None self._creation_timestamp = None self._deletion_timestamp = None self._deletion_grace_period_seconds = None self._labels = None self._annotations = None @property def name(self): """ Gets the name of this V1ObjectMeta. Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :return: The name of this V1ObjectMeta. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1ObjectMeta. Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1ObjectMeta. :type: str """ self._name = name @property def generate_name(self): """ Gets the generate_name of this V1ObjectMeta. GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#idempotency :return: The generate_name of this V1ObjectMeta. :rtype: str """ return self._generate_name @generate_name.setter def generate_name(self, generate_name): """ Sets the generate_name of this V1ObjectMeta. GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#idempotency :param generate_name: The generate_name of this V1ObjectMeta. :type: str """ self._generate_name = generate_name @property def namespace(self): """ Gets the namespace of this V1ObjectMeta. Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md :return: The namespace of this V1ObjectMeta. :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): """ Sets the namespace of this V1ObjectMeta. Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md :param namespace: The namespace of this V1ObjectMeta. :type: str """ self._namespace = namespace @property def self_link(self): """ Gets the self_link of this V1ObjectMeta. SelfLink is a URL representing this object. Populated by the system. Read-only. :return: The self_link of this V1ObjectMeta. :rtype: str """ return self._self_link @self_link.setter def self_link(self, self_link): """ Sets the self_link of this V1ObjectMeta. SelfLink is a URL representing this object. Populated by the system. Read-only. :param self_link: The self_link of this V1ObjectMeta. :type: str """ self._self_link = self_link @property def uid(self): """ Gets the uid of this V1ObjectMeta. UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#uids :return: The uid of this V1ObjectMeta. :rtype: str """ return self._uid @uid.setter def uid(self, uid): """ Sets the uid of this V1ObjectMeta. UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#uids :param uid: The uid of this V1ObjectMeta. :type: str """ self._uid = uid @property def resource_version(self): """ Gets the resource_version of this V1ObjectMeta. An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency :return: The resource_version of this V1ObjectMeta. :rtype: str """ return self._resource_version @resource_version.setter def resource_version(self, resource_version): """ Sets the resource_version of this V1ObjectMeta. An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency :param resource_version: The resource_version of this V1ObjectMeta. :type: str """ self._resource_version = resource_version @property def generation(self): """ Gets the generation of this V1ObjectMeta. A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. :return: The generation of this V1ObjectMeta. :rtype: int """ return self._generation @generation.setter def generation(self, generation): """ Sets the generation of this V1ObjectMeta. A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. :param generation: The generation of this V1ObjectMeta. :type: int """ self._generation = generation @property def creation_timestamp(self): """ Gets the creation_timestamp of this V1ObjectMeta. CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The creation_timestamp of this V1ObjectMeta. :rtype: str """ return self._creation_timestamp @creation_timestamp.setter def creation_timestamp(self, creation_timestamp): """ Sets the creation_timestamp of this V1ObjectMeta. CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param creation_timestamp: The creation_timestamp of this V1ObjectMeta. :type: str """ self._creation_timestamp = creation_timestamp @property def deletion_timestamp(self): """ Gets the deletion_timestamp of this V1ObjectMeta. DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource will be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. Once the resource is deleted in the API, the Kubelet will send a hard termination signal to the container. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The deletion_timestamp of this V1ObjectMeta. :rtype: str """ return self._deletion_timestamp @deletion_timestamp.setter def deletion_timestamp(self, deletion_timestamp): """ Sets the deletion_timestamp of this V1ObjectMeta. DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource will be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. Once the resource is deleted in the API, the Kubelet will send a hard termination signal to the container. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param deletion_timestamp: The deletion_timestamp of this V1ObjectMeta. :type: str """ self._deletion_timestamp = deletion_timestamp @property def deletion_grace_period_seconds(self): """ Gets the deletion_grace_period_seconds of this V1ObjectMeta. Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. :return: The deletion_grace_period_seconds of this V1ObjectMeta. :rtype: int """ return self._deletion_grace_period_seconds @deletion_grace_period_seconds.setter def deletion_grace_period_seconds(self, deletion_grace_period_seconds): """ Sets the deletion_grace_period_seconds of this V1ObjectMeta. Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. :param deletion_grace_period_seconds: The deletion_grace_period_seconds of this V1ObjectMeta. :type: int """ self._deletion_grace_period_seconds = deletion_grace_period_seconds @property def labels(self): """ Gets the labels of this V1ObjectMeta. Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://releases.k8s.io/release-1.2/docs/user-guide/labels.md :return: The labels of this V1ObjectMeta. :rtype: object """ return self._labels @labels.setter def labels(self, labels): """ Sets the labels of this V1ObjectMeta. Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://releases.k8s.io/release-1.2/docs/user-guide/labels.md :param labels: The labels of this V1ObjectMeta. :type: object """ self._labels = labels @property def annotations(self): """ Gets the annotations of this V1ObjectMeta. Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://releases.k8s.io/release-1.2/docs/user-guide/annotations.md :return: The annotations of this V1ObjectMeta. :rtype: object """ return self._annotations @annotations.setter def annotations(self, annotations): """ Sets the annotations of this V1ObjectMeta. Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://releases.k8s.io/release-1.2/docs/user-guide/annotations.md :param annotations: The annotations of this V1ObjectMeta. :type: object """ self._annotations = annotations def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_http_header.py0000664000567000056710000000614013046233226027076 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1HTTPHeader(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'value': 'str' } self.attribute_map = { 'name': 'name', 'value': 'value' } self._name = None self._value = None @property def name(self): """ Gets the name of this V1HTTPHeader. The header field name :return: The name of this V1HTTPHeader. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1HTTPHeader. The header field name :param name: The name of this V1HTTPHeader. :type: str """ self._name = name @property def value(self): """ Gets the value of this V1HTTPHeader. The header field value :return: The value of this V1HTTPHeader. :rtype: str """ return self._value @value.setter def value(self, value): """ Sets the value of this V1HTTPHeader. The header field value :param value: The value of this V1HTTPHeader. :type: str """ self._value = value def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_security_context.py0000664000567000056710000002141413046233226030223 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1SecurityContext(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'capabilities': 'V1Capabilities', 'privileged': 'bool', 'se_linux_options': 'V1SELinuxOptions', 'run_as_user': 'int', 'run_as_non_root': 'bool', 'read_only_root_filesystem': 'bool' } self.attribute_map = { 'capabilities': 'capabilities', 'privileged': 'privileged', 'se_linux_options': 'seLinuxOptions', 'run_as_user': 'runAsUser', 'run_as_non_root': 'runAsNonRoot', 'read_only_root_filesystem': 'readOnlyRootFilesystem' } self._capabilities = None self._privileged = None self._se_linux_options = None self._run_as_user = None self._run_as_non_root = None self._read_only_root_filesystem = None @property def capabilities(self): """ Gets the capabilities of this V1SecurityContext. The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. :return: The capabilities of this V1SecurityContext. :rtype: V1Capabilities """ return self._capabilities @capabilities.setter def capabilities(self, capabilities): """ Sets the capabilities of this V1SecurityContext. The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. :param capabilities: The capabilities of this V1SecurityContext. :type: V1Capabilities """ self._capabilities = capabilities @property def privileged(self): """ Gets the privileged of this V1SecurityContext. Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. :return: The privileged of this V1SecurityContext. :rtype: bool """ return self._privileged @privileged.setter def privileged(self, privileged): """ Sets the privileged of this V1SecurityContext. Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. :param privileged: The privileged of this V1SecurityContext. :type: bool """ self._privileged = privileged @property def se_linux_options(self): """ Gets the se_linux_options of this V1SecurityContext. The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :return: The se_linux_options of this V1SecurityContext. :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 V1SecurityContext. The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :param se_linux_options: The se_linux_options of this V1SecurityContext. :type: V1SELinuxOptions """ self._se_linux_options = se_linux_options @property def run_as_user(self): """ Gets the run_as_user of this V1SecurityContext. The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :return: The run_as_user of this V1SecurityContext. :rtype: int """ return self._run_as_user @run_as_user.setter def run_as_user(self, run_as_user): """ Sets the run_as_user of this V1SecurityContext. The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :param run_as_user: The run_as_user of this V1SecurityContext. :type: int """ self._run_as_user = run_as_user @property def run_as_non_root(self): """ Gets the run_as_non_root of this V1SecurityContext. Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :return: The run_as_non_root of this V1SecurityContext. :rtype: bool """ return self._run_as_non_root @run_as_non_root.setter def run_as_non_root(self, run_as_non_root): """ Sets the run_as_non_root of this V1SecurityContext. Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :param run_as_non_root: The run_as_non_root of this V1SecurityContext. :type: bool """ self._run_as_non_root = run_as_non_root @property def read_only_root_filesystem(self): """ Gets the read_only_root_filesystem of this V1SecurityContext. Whether this container has a read-only root filesystem. Default is false. :return: The read_only_root_filesystem of this V1SecurityContext. :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 V1SecurityContext. Whether this container has a read-only root filesystem. Default is false. :param read_only_root_filesystem: The read_only_root_filesystem of this V1SecurityContext. :type: bool """ self._read_only_root_filesystem = read_only_root_filesystem def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_object_field_selector.py0000664000567000056710000000705113046233226031122 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ObjectFieldSelector(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'api_version': 'str', 'field_path': 'str' } self.attribute_map = { 'api_version': 'apiVersion', 'field_path': 'fieldPath' } self._api_version = None self._field_path = None @property def api_version(self): """ Gets the api_version of this V1ObjectFieldSelector. Version of the schema the FieldPath is written in terms of, defaults to \"v1\". :return: The api_version of this V1ObjectFieldSelector. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1ObjectFieldSelector. Version of the schema the FieldPath is written in terms of, defaults to \"v1\". :param api_version: The api_version of this V1ObjectFieldSelector. :type: str """ self._api_version = api_version @property def field_path(self): """ Gets the field_path of this V1ObjectFieldSelector. Path of the field to select in the specified API version. :return: The field_path of this V1ObjectFieldSelector. :rtype: str """ return self._field_path @field_path.setter def field_path(self, field_path): """ Sets the field_path of this V1ObjectFieldSelector. Path of the field to select in the specified API version. :param field_path: The field_path of this V1ObjectFieldSelector. :type: str """ self._field_path = field_path def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_glusterfs_volume_source.py0000664000567000056710000001132413046233226031574 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1GlusterfsVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'endpoints': 'str', 'path': 'str', 'read_only': 'bool' } self.attribute_map = { 'endpoints': 'endpoints', 'path': 'path', 'read_only': 'readOnly' } self._endpoints = None self._path = None self._read_only = None @property def endpoints(self): """ Gets the endpoints of this V1GlusterfsVolumeSource. EndpointsName is the endpoint name that details Glusterfs topology. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :return: The endpoints of this V1GlusterfsVolumeSource. :rtype: str """ return self._endpoints @endpoints.setter def endpoints(self, endpoints): """ Sets the endpoints of this V1GlusterfsVolumeSource. EndpointsName is the endpoint name that details Glusterfs topology. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :param endpoints: The endpoints of this V1GlusterfsVolumeSource. :type: str """ self._endpoints = endpoints @property def path(self): """ Gets the path of this V1GlusterfsVolumeSource. Path is the Glusterfs volume path. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :return: The path of this V1GlusterfsVolumeSource. :rtype: str """ return self._path @path.setter def path(self, path): """ Sets the path of this V1GlusterfsVolumeSource. Path is the Glusterfs volume path. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :param path: The path of this V1GlusterfsVolumeSource. :type: str """ self._path = path @property def read_only(self): """ Gets the read_only of this V1GlusterfsVolumeSource. ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :return: The read_only of this V1GlusterfsVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1GlusterfsVolumeSource. ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :param read_only: The read_only of this V1GlusterfsVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_resource_requirements.py0000664000567000056710000001014613046233226031242 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ResourceRequirements(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'limits': 'object', 'requests': 'object' } self.attribute_map = { 'limits': 'limits', 'requests': 'requests' } self._limits = None self._requests = None @property def limits(self): """ Gets the limits of this V1ResourceRequirements. Limits describes the maximum amount of compute resources allowed. More info: http://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications :return: The limits of this V1ResourceRequirements. :rtype: object """ return self._limits @limits.setter def limits(self, limits): """ Sets the limits of this V1ResourceRequirements. Limits describes the maximum amount of compute resources allowed. More info: http://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications :param limits: The limits of this V1ResourceRequirements. :type: object """ self._limits = limits @property def requests(self): """ Gets the requests of this V1ResourceRequirements. Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications :return: The requests of this V1ResourceRequirements. :rtype: object """ return self._requests @requests.setter def requests(self, requests): """ Sets the requests of this V1ResourceRequirements. Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications :param requests: The requests of this V1ResourceRequirements. :type: object """ self._requests = requests def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_job_status.py0000664000567000056710000001562413046233226026773 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1JobStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'conditions': 'list[V1JobCondition]', 'start_time': 'str', 'completion_time': 'str', 'active': 'int', 'succeeded': 'int', 'failed': 'int' } self.attribute_map = { 'conditions': 'conditions', 'start_time': 'startTime', 'completion_time': 'completionTime', 'active': 'active', 'succeeded': 'succeeded', 'failed': 'failed' } self._conditions = None self._start_time = None self._completion_time = None self._active = None self._succeeded = None self._failed = None @property def conditions(self): """ Gets the conditions of this V1JobStatus. Conditions represent the latest available observations of an object's current state. More info: http://releases.k8s.io/release-1.2/docs/user-guide/jobs.md :return: The conditions of this V1JobStatus. :rtype: list[V1JobCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): """ Sets the conditions of this V1JobStatus. Conditions represent the latest available observations of an object's current state. More info: http://releases.k8s.io/release-1.2/docs/user-guide/jobs.md :param conditions: The conditions of this V1JobStatus. :type: list[V1JobCondition] """ self._conditions = conditions @property def start_time(self): """ Gets the start_time of this V1JobStatus. 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 V1JobStatus. :rtype: str """ return self._start_time @start_time.setter def start_time(self, start_time): """ Sets the start_time of this V1JobStatus. 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 V1JobStatus. :type: str """ self._start_time = start_time @property def completion_time(self): """ Gets the completion_time of this V1JobStatus. 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 V1JobStatus. :rtype: str """ return self._completion_time @completion_time.setter def completion_time(self, completion_time): """ Sets the completion_time of this V1JobStatus. 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 V1JobStatus. :type: str """ self._completion_time = completion_time @property def active(self): """ Gets the active of this V1JobStatus. Active is the number of actively running pods. :return: The active of this V1JobStatus. :rtype: int """ return self._active @active.setter def active(self, active): """ Sets the active of this V1JobStatus. Active is the number of actively running pods. :param active: The active of this V1JobStatus. :type: int """ self._active = active @property def succeeded(self): """ Gets the succeeded of this V1JobStatus. Succeeded is the number of pods which reached Phase Succeeded. :return: The succeeded of this V1JobStatus. :rtype: int """ return self._succeeded @succeeded.setter def succeeded(self, succeeded): """ Sets the succeeded of this V1JobStatus. Succeeded is the number of pods which reached Phase Succeeded. :param succeeded: The succeeded of this V1JobStatus. :type: int """ self._succeeded = succeeded @property def failed(self): """ Gets the failed of this V1JobStatus. Failed is the number of pods which reached Phase Failed. :return: The failed of this V1JobStatus. :rtype: int """ return self._failed @failed.setter def failed(self, failed): """ Sets the failed of this V1JobStatus. Failed is the number of pods which reached Phase Failed. :param failed: The failed of this V1JobStatus. :type: int """ self._failed = failed def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/__init__.py0000664000567000056710000000736513046233226025752 0ustar jenkinsjenkins00000000000000# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from __future__ import absolute_import # import models into model package from .v1_se_linux_options import V1SELinuxOptions from .v1_object_field_selector import V1ObjectFieldSelector from .v1_volume_mount import V1VolumeMount from .v1_nfs_volume_source import V1NFSVolumeSource from .v1_label_selector import V1LabelSelector from .v1_ceph_fs_volume_source import V1CephFSVolumeSource from .v1_http_header import V1HTTPHeader from .v1_fc_volume_source import V1FCVolumeSource from .v1_downward_api_volume_source import V1DownwardAPIVolumeSource from .unversioned_status_cause import UnversionedStatusCause from .v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource from .v1_tcp_socket_action import V1TCPSocketAction from .v1_config_map_volume_source import V1ConfigMapVolumeSource from .unversioned_status_details import UnversionedStatusDetails from .v1_git_repo_volume_source import V1GitRepoVolumeSource from .v1_http_get_action import V1HTTPGetAction from .v1_capabilities import V1Capabilities from .v1_local_object_reference import V1LocalObjectReference from .v1_container import V1Container from .v1_pod_security_context import V1PodSecurityContext from .v1_exec_action import V1ExecAction from .v1_job_status import V1JobStatus from .v1_object_meta import V1ObjectMeta from .v1_host_path_volume_source import V1HostPathVolumeSource from .v1_azure_file_volume_source import V1AzureFileVolumeSource from .v1_iscsi_volume_source import V1ISCSIVolumeSource from .json_watch_event import JsonWatchEvent from .v1_empty_dir_volume_source import V1EmptyDirVolumeSource from .unversioned_patch import UnversionedPatch from .v1_cinder_volume_source import V1CinderVolumeSource from .v1_security_context import V1SecurityContext from .v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource from .v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource from .v1_flocker_volume_source import V1FlockerVolumeSource from .unversioned_list_meta import UnversionedListMeta from .v1_job import V1Job from .v1_job_condition import V1JobCondition from .v1_job_list import V1JobList from .v1_secret_volume_source import V1SecretVolumeSource from .v1_label_selector_requirement import V1LabelSelectorRequirement from .v1_env_var import V1EnvVar from .v1_resource_requirements import V1ResourceRequirements from .v1_flex_volume_source import V1FlexVolumeSource from .v1_env_var_source import V1EnvVarSource from .v1_pod_template_spec import V1PodTemplateSpec from .v1_key_to_path import V1KeyToPath from .v1_job_spec import V1JobSpec from .v1_delete_options import V1DeleteOptions from .v1_volume import V1Volume from .integer import Integer from .v1_probe import V1Probe from .v1_secret_key_selector import V1SecretKeySelector from .unversioned_status import UnversionedStatus from .v1_capability import V1Capability from .v1_downward_api_volume_file import V1DownwardAPIVolumeFile from .v1_pod_spec import V1PodSpec from .v1_container_port import V1ContainerPort from .v1_lifecycle import V1Lifecycle from .v1_config_map_key_selector import V1ConfigMapKeySelector from .v1_glusterfs_volume_source import V1GlusterfsVolumeSource from .v1_handler import V1Handler from .v1_rbd_volume_source import V1RBDVolumeSource python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_cinder_volume_source.py0000664000567000056710000001165313046233226031027 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1CinderVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'volume_id': 'str', 'fs_type': 'str', 'read_only': 'bool' } self.attribute_map = { 'volume_id': 'volumeID', 'fs_type': 'fsType', 'read_only': 'readOnly' } self._volume_id = None self._fs_type = None self._read_only = None @property def volume_id(self): """ Gets the volume_id of this V1CinderVolumeSource. volume id used to identify the volume in cinder More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :return: The volume_id of this V1CinderVolumeSource. :rtype: str """ return self._volume_id @volume_id.setter def volume_id(self, volume_id): """ Sets the volume_id of this V1CinderVolumeSource. volume id used to identify the volume in cinder More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :param volume_id: The volume_id of this V1CinderVolumeSource. :type: str """ self._volume_id = volume_id @property def fs_type(self): """ Gets the fs_type of this V1CinderVolumeSource. Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :return: The fs_type of this V1CinderVolumeSource. :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): """ Sets the fs_type of this V1CinderVolumeSource. Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :param fs_type: The fs_type of this V1CinderVolumeSource. :type: str """ self._fs_type = fs_type @property def read_only(self): """ Gets the read_only of this V1CinderVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :return: The read_only of this V1CinderVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1CinderVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :param read_only: The read_only of this V1CinderVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_tcp_socket_action.py0000664000567000056710000000542213046233226030304 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1TCPSocketAction(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'port': 'str' } self.attribute_map = { 'port': 'port' } self._port = None @property def port(self): """ Gets the port of this V1TCPSocketAction. Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. :return: The port of this V1TCPSocketAction. :rtype: str """ return self._port @port.setter def port(self, port): """ Sets the port of this V1TCPSocketAction. Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. :param port: The port of this V1TCPSocketAction. :type: str """ self._port = port def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_nfs_volume_source.py0000664000567000056710000001077413046233226030354 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1NFSVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'server': 'str', 'path': 'str', 'read_only': 'bool' } self.attribute_map = { 'server': 'server', 'path': 'path', 'read_only': 'readOnly' } self._server = None self._path = None self._read_only = None @property def server(self): """ Gets the server of this V1NFSVolumeSource. Server is the hostname or IP address of the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :return: The server of this V1NFSVolumeSource. :rtype: str """ return self._server @server.setter def server(self, server): """ Sets the server of this V1NFSVolumeSource. Server is the hostname or IP address of the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :param server: The server of this V1NFSVolumeSource. :type: str """ self._server = server @property def path(self): """ Gets the path of this V1NFSVolumeSource. Path that is exported by the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :return: The path of this V1NFSVolumeSource. :rtype: str """ return self._path @path.setter def path(self, path): """ Sets the path of this V1NFSVolumeSource. Path that is exported by the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :param path: The path of this V1NFSVolumeSource. :type: str """ self._path = path @property def read_only(self): """ Gets the read_only of this V1NFSVolumeSource. ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :return: The read_only of this V1NFSVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1NFSVolumeSource. ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :param read_only: The read_only of this V1NFSVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_flex_volume_source.py0000664000567000056710000001357513046233226030526 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1FlexVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'driver': 'str', 'fs_type': 'str', 'secret_ref': 'V1LocalObjectReference', 'read_only': 'bool', 'options': 'object' } self.attribute_map = { 'driver': 'driver', 'fs_type': 'fsType', 'secret_ref': 'secretRef', 'read_only': 'readOnly', 'options': 'options' } self._driver = None self._fs_type = None self._secret_ref = None self._read_only = None self._options = None @property def driver(self): """ Gets the driver of this V1FlexVolumeSource. Driver is the name of the driver to use for this volume. :return: The driver of this V1FlexVolumeSource. :rtype: str """ return self._driver @driver.setter def driver(self, driver): """ Sets the driver of this V1FlexVolumeSource. Driver is the name of the driver to use for this volume. :param driver: The driver of this V1FlexVolumeSource. :type: str """ self._driver = driver @property def fs_type(self): """ Gets the fs_type of this V1FlexVolumeSource. Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. :return: The fs_type of this V1FlexVolumeSource. :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): """ Sets the fs_type of this V1FlexVolumeSource. Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. :param fs_type: The fs_type of this V1FlexVolumeSource. :type: str """ self._fs_type = fs_type @property def secret_ref(self): """ Gets the secret_ref of this V1FlexVolumeSource. Optional: SecretRef is reference to the authentication secret for User, default is empty. :return: The secret_ref of this V1FlexVolumeSource. :rtype: V1LocalObjectReference """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): """ Sets the secret_ref of this V1FlexVolumeSource. Optional: SecretRef is reference to the authentication secret for User, default is empty. :param secret_ref: The secret_ref of this V1FlexVolumeSource. :type: V1LocalObjectReference """ self._secret_ref = secret_ref @property def read_only(self): """ Gets the read_only of this V1FlexVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. :return: The read_only of this V1FlexVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1FlexVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. :param read_only: The read_only of this V1FlexVolumeSource. :type: bool """ self._read_only = read_only @property def options(self): """ Gets the options of this V1FlexVolumeSource. Optional: Extra command options if any. :return: The options of this V1FlexVolumeSource. :rtype: object """ return self._options @options.setter def options(self, options): """ Sets the options of this V1FlexVolumeSource. Optional: Extra command options if any. :param options: The options of this V1FlexVolumeSource. :type: object """ self._options = options def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_container_port.py0000664000567000056710000001376713046233226027652 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ContainerPort(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'host_port': 'int', 'container_port': 'int', 'protocol': 'str', 'host_ip': 'str' } self.attribute_map = { 'name': 'name', 'host_port': 'hostPort', 'container_port': 'containerPort', 'protocol': 'protocol', 'host_ip': 'hostIP' } self._name = None self._host_port = None self._container_port = None self._protocol = None self._host_ip = None @property def name(self): """ Gets the name of this V1ContainerPort. If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. :return: The name of this V1ContainerPort. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1ContainerPort. If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. :param name: The name of this V1ContainerPort. :type: str """ self._name = name @property def host_port(self): """ Gets the host_port of this V1ContainerPort. Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. :return: The host_port of this V1ContainerPort. :rtype: int """ return self._host_port @host_port.setter def host_port(self, host_port): """ Sets the host_port of this V1ContainerPort. Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. :param host_port: The host_port of this V1ContainerPort. :type: int """ self._host_port = host_port @property def container_port(self): """ Gets the container_port of this V1ContainerPort. Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. :return: The container_port of this V1ContainerPort. :rtype: int """ return self._container_port @container_port.setter def container_port(self, container_port): """ Sets the container_port of this V1ContainerPort. Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. :param container_port: The container_port of this V1ContainerPort. :type: int """ self._container_port = container_port @property def protocol(self): """ Gets the protocol of this V1ContainerPort. Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". :return: The protocol of this V1ContainerPort. :rtype: str """ return self._protocol @protocol.setter def protocol(self, protocol): """ Sets the protocol of this V1ContainerPort. Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". :param protocol: The protocol of this V1ContainerPort. :type: str """ self._protocol = protocol @property def host_ip(self): """ Gets the host_ip of this V1ContainerPort. What host IP to bind the external port to. :return: The host_ip of this V1ContainerPort. :rtype: str """ return self._host_ip @host_ip.setter def host_ip(self, host_ip): """ Sets the host_ip of this V1ContainerPort. What host IP to bind the external port to. :param host_ip: The host_ip of this V1ContainerPort. :type: str """ self._host_ip = host_ip def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_pod_security_context.py0000664000567000056710000002066413046233226031073 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PodSecurityContext(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'se_linux_options': 'V1SELinuxOptions', 'run_as_user': 'int', 'run_as_non_root': 'bool', 'supplemental_groups': 'list[int]', 'fs_group': 'int' } self.attribute_map = { 'se_linux_options': 'seLinuxOptions', 'run_as_user': 'runAsUser', 'run_as_non_root': 'runAsNonRoot', 'supplemental_groups': 'supplementalGroups', 'fs_group': 'fsGroup' } self._se_linux_options = None self._run_as_user = None self._run_as_non_root = None self._supplemental_groups = None self._fs_group = None @property def se_linux_options(self): """ Gets the se_linux_options of this V1PodSecurityContext. The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. :return: The se_linux_options of this V1PodSecurityContext. :rtype: V1SELinuxOptions """ return self._se_linux_options @se_linux_options.setter def se_linux_options(self, se_linux_options): """ Sets the se_linux_options of this V1PodSecurityContext. The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. :param se_linux_options: The se_linux_options of this V1PodSecurityContext. :type: V1SELinuxOptions """ self._se_linux_options = se_linux_options @property def run_as_user(self): """ Gets the run_as_user of this V1PodSecurityContext. The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. :return: The run_as_user of this V1PodSecurityContext. :rtype: int """ return self._run_as_user @run_as_user.setter def run_as_user(self, run_as_user): """ Sets the run_as_user of this V1PodSecurityContext. The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. :param run_as_user: The run_as_user of this V1PodSecurityContext. :type: int """ self._run_as_user = run_as_user @property def run_as_non_root(self): """ Gets the run_as_non_root of this V1PodSecurityContext. Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :return: The run_as_non_root of this V1PodSecurityContext. :rtype: bool """ return self._run_as_non_root @run_as_non_root.setter def run_as_non_root(self, run_as_non_root): """ Sets the run_as_non_root of this V1PodSecurityContext. Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :param run_as_non_root: The run_as_non_root of this V1PodSecurityContext. :type: bool """ self._run_as_non_root = run_as_non_root @property def supplemental_groups(self): """ Gets the supplemental_groups of this V1PodSecurityContext. A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. :return: The supplemental_groups of this V1PodSecurityContext. :rtype: list[int] """ return self._supplemental_groups @supplemental_groups.setter def supplemental_groups(self, supplemental_groups): """ Sets the supplemental_groups of this V1PodSecurityContext. A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. :param supplemental_groups: The supplemental_groups of this V1PodSecurityContext. :type: list[int] """ self._supplemental_groups = supplemental_groups @property def fs_group(self): """ Gets the fs_group of this V1PodSecurityContext. A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw :return: The fs_group of this V1PodSecurityContext. :rtype: int """ return self._fs_group @fs_group.setter def fs_group(self, fs_group): """ Sets the fs_group of this V1PodSecurityContext. A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw :param fs_group: The fs_group of this V1PodSecurityContext. :type: int """ self._fs_group = fs_group def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_job.py0000664000567000056710000001474013046233226025366 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Job(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1JobSpec', 'status': 'V1JobStatus' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status' } self._kind = None self._api_version = None self._metadata = None self._spec = None self._status = None @property def kind(self): """ Gets the kind of this V1Job. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1Job. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1Job. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1Job. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1Job. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1Job. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1Job. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1Job. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1Job. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1Job. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1Job. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1Job. :type: V1ObjectMeta """ self._metadata = metadata @property def spec(self): """ Gets the spec of this V1Job. Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V1Job. :rtype: V1JobSpec """ return self._spec @spec.setter def spec(self, spec): """ Sets the spec of this V1Job. Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V1Job. :type: V1JobSpec """ self._spec = spec @property def status(self): """ Gets the status of this V1Job. Status is a structure describing current status of a job. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The status of this V1Job. :rtype: V1JobStatus """ return self._status @status.setter def status(self, status): """ Sets the status of this V1Job. Status is a structure describing current status of a job. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param status: The status of this V1Job. :type: V1JobStatus """ self._status = status def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_job_list.py0000664000567000056710000001300613046233226026413 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1JobList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'items': 'list[V1Job]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'items': 'items' } self._kind = None self._api_version = None self._metadata = None self._items = None @property def kind(self): """ Gets the kind of this V1JobList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1JobList. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1JobList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1JobList. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1JobList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1JobList. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1JobList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1JobList. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1JobList. Standard list metadata More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1JobList. :rtype: UnversionedListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1JobList. Standard list metadata More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1JobList. :type: UnversionedListMeta """ self._metadata = metadata @property def items(self): """ Gets the items of this V1JobList. Items is the list of Job. :return: The items of this V1JobList. :rtype: list[V1Job] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1JobList. Items is the list of Job. :param items: The items of this V1JobList. :type: list[V1Job] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_exec_action.py0000664000567000056710000000652713046233226027101 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ExecAction(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'command': 'list[str]' } self.attribute_map = { 'command': 'command' } self._command = None @property def command(self): """ Gets the command of this V1ExecAction. Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. :return: The command of this V1ExecAction. :rtype: list[str] """ return self._command @command.setter def command(self, command): """ Sets the command of this V1ExecAction. Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. :param command: The command of this V1ExecAction. :type: list[str] """ self._command = command def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_capability.py0000664000567000056710000000404013046233226026725 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Capability(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { } self.attribute_map = { } def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_fc_volume_source.py0000664000567000056710000001176513046233226030157 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1FCVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'target_ww_ns': 'list[str]', 'lun': 'int', 'fs_type': 'str', 'read_only': 'bool' } self.attribute_map = { 'target_ww_ns': 'targetWWNs', 'lun': 'lun', 'fs_type': 'fsType', 'read_only': 'readOnly' } self._target_ww_ns = None self._lun = None self._fs_type = None self._read_only = None @property def target_ww_ns(self): """ Gets the target_ww_ns of this V1FCVolumeSource. Required: FC target world wide names (WWNs) :return: The target_ww_ns of this V1FCVolumeSource. :rtype: list[str] """ return self._target_ww_ns @target_ww_ns.setter def target_ww_ns(self, target_ww_ns): """ Sets the target_ww_ns of this V1FCVolumeSource. Required: FC target world wide names (WWNs) :param target_ww_ns: The target_ww_ns of this V1FCVolumeSource. :type: list[str] """ self._target_ww_ns = target_ww_ns @property def lun(self): """ Gets the lun of this V1FCVolumeSource. Required: FC target lun number :return: The lun of this V1FCVolumeSource. :rtype: int """ return self._lun @lun.setter def lun(self, lun): """ Sets the lun of this V1FCVolumeSource. Required: FC target lun number :param lun: The lun of this V1FCVolumeSource. :type: int """ self._lun = lun @property def fs_type(self): """ Gets the fs_type of this V1FCVolumeSource. Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. :return: The fs_type of this V1FCVolumeSource. :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): """ Sets the fs_type of this V1FCVolumeSource. Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. :param fs_type: The fs_type of this V1FCVolumeSource. :type: str """ self._fs_type = fs_type @property def read_only(self): """ Gets the read_only of this V1FCVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. :return: The read_only of this V1FCVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1FCVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. :param read_only: The read_only of this V1FCVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_pod_template_spec.py0000664000567000056710000000721613046233226030303 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PodTemplateSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'metadata': 'V1ObjectMeta', 'spec': 'V1PodSpec' } self.attribute_map = { 'metadata': 'metadata', 'spec': 'spec' } self._metadata = None self._spec = None @property def metadata(self): """ Gets the metadata of this V1PodTemplateSpec. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1PodTemplateSpec. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1PodTemplateSpec. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1PodTemplateSpec. :type: V1ObjectMeta """ self._metadata = metadata @property def spec(self): """ Gets the spec of this V1PodTemplateSpec. Specification of the desired behavior of the pod. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V1PodTemplateSpec. :rtype: V1PodSpec """ return self._spec @spec.setter def spec(self, spec): """ Sets the spec of this V1PodTemplateSpec. Specification of the desired behavior of the pod. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V1PodTemplateSpec. :type: V1PodSpec """ self._spec = spec def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_secret_volume_source.py0000664000567000056710000000563213046233226031050 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1SecretVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'secret_name': 'str' } self.attribute_map = { 'secret_name': 'secretName' } self._secret_name = None @property def secret_name(self): """ Gets the secret_name of this V1SecretVolumeSource. Name of the secret in the pod's namespace to use. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets :return: The secret_name of this V1SecretVolumeSource. :rtype: str """ return self._secret_name @secret_name.setter def secret_name(self, secret_name): """ Sets the secret_name of this V1SecretVolumeSource. Name of the secret in the pod's namespace to use. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets :param secret_name: The secret_name of this V1SecretVolumeSource. :type: str """ self._secret_name = secret_name def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_label_selector.py0000664000567000056710000001017113046233226027565 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1LabelSelector(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'match_labels': 'object', 'match_expressions': 'list[V1LabelSelectorRequirement]' } self.attribute_map = { 'match_labels': 'matchLabels', 'match_expressions': 'matchExpressions' } self._match_labels = None self._match_expressions = None @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: object """ 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: object """ 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 def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_job_condition.py0000664000567000056710000001422613046233226027433 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1JobCondition(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'type': 'str', 'status': 'str', 'last_probe_time': 'str', 'last_transition_time': 'str', 'reason': 'str', 'message': 'str' } self.attribute_map = { 'type': 'type', 'status': 'status', 'last_probe_time': 'lastProbeTime', 'last_transition_time': 'lastTransitionTime', 'reason': 'reason', 'message': 'message' } self._type = None self._status = None self._last_probe_time = None self._last_transition_time = None self._reason = None self._message = None @property def type(self): """ Gets the type of this V1JobCondition. Type of job condition, Complete or Failed. :return: The type of this V1JobCondition. :rtype: str """ return self._type @type.setter def type(self, type): """ Sets the type of this V1JobCondition. Type of job condition, Complete or Failed. :param type: The type of this V1JobCondition. :type: str """ self._type = type @property def status(self): """ Gets the status of this V1JobCondition. Status of the condition, one of True, False, Unknown. :return: The status of this V1JobCondition. :rtype: str """ return self._status @status.setter def status(self, status): """ Sets the status of this V1JobCondition. Status of the condition, one of True, False, Unknown. :param status: The status of this V1JobCondition. :type: str """ self._status = status @property def last_probe_time(self): """ Gets the last_probe_time of this V1JobCondition. Last time the condition was checked. :return: The last_probe_time of this V1JobCondition. :rtype: str """ return self._last_probe_time @last_probe_time.setter def last_probe_time(self, last_probe_time): """ Sets the last_probe_time of this V1JobCondition. Last time the condition was checked. :param last_probe_time: The last_probe_time of this V1JobCondition. :type: str """ self._last_probe_time = last_probe_time @property def last_transition_time(self): """ Gets the last_transition_time of this V1JobCondition. Last time the condition transit from one status to another. :return: The last_transition_time of this V1JobCondition. :rtype: str """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): """ Sets the last_transition_time of this V1JobCondition. Last time the condition transit from one status to another. :param last_transition_time: The last_transition_time of this V1JobCondition. :type: str """ self._last_transition_time = last_transition_time @property def reason(self): """ Gets the reason of this V1JobCondition. (brief) reason for the condition's last transition. :return: The reason of this V1JobCondition. :rtype: str """ return self._reason @reason.setter def reason(self, reason): """ Sets the reason of this V1JobCondition. (brief) reason for the condition's last transition. :param reason: The reason of this V1JobCondition. :type: str """ self._reason = reason @property def message(self): """ Gets the message of this V1JobCondition. Human readable message indicating details about last transition. :return: The message of this V1JobCondition. :rtype: str """ return self._message @message.setter def message(self, message): """ Sets the message of this V1JobCondition. Human readable message indicating details about last transition. :param message: The message of this V1JobCondition. :type: str """ self._message = message def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_capabilities.py0000664000567000056710000000624213046233226027243 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Capabilities(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'add': 'list[V1Capability]', 'drop': 'list[V1Capability]' } self.attribute_map = { 'add': 'add', 'drop': 'drop' } self._add = None self._drop = None @property def add(self): """ Gets the add of this V1Capabilities. Added capabilities :return: The add of this V1Capabilities. :rtype: list[V1Capability] """ return self._add @add.setter def add(self, add): """ Sets the add of this V1Capabilities. Added capabilities :param add: The add of this V1Capabilities. :type: list[V1Capability] """ self._add = add @property def drop(self): """ Gets the drop of this V1Capabilities. Removed capabilities :return: The drop of this V1Capabilities. :rtype: list[V1Capability] """ return self._drop @drop.setter def drop(self, drop): """ Sets the drop of this V1Capabilities. Removed capabilities :param drop: The drop of this V1Capabilities. :type: list[V1Capability] """ self._drop = drop def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_probe.py0000664000567000056710000002164313046233226025723 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Probe(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { '_exec': 'V1ExecAction', 'http_get': 'V1HTTPGetAction', 'tcp_socket': 'V1TCPSocketAction', 'initial_delay_seconds': 'int', 'timeout_seconds': 'int', 'period_seconds': 'int', 'success_threshold': 'int', 'failure_threshold': 'int' } self.attribute_map = { '_exec': 'exec', 'http_get': 'httpGet', 'tcp_socket': 'tcpSocket', 'initial_delay_seconds': 'initialDelaySeconds', 'timeout_seconds': 'timeoutSeconds', 'period_seconds': 'periodSeconds', 'success_threshold': 'successThreshold', 'failure_threshold': 'failureThreshold' } self.__exec = None self._http_get = None self._tcp_socket = None self._initial_delay_seconds = None self._timeout_seconds = None self._period_seconds = None self._success_threshold = None self._failure_threshold = None @property def _exec(self): """ Gets the _exec of this V1Probe. One and only one of the following should be specified. Exec specifies the action to take. :return: The _exec of this V1Probe. :rtype: V1ExecAction """ return self.__exec @_exec.setter def _exec(self, _exec): """ Sets the _exec of this V1Probe. One and only one of the following should be specified. Exec specifies the action to take. :param _exec: The _exec of this V1Probe. :type: V1ExecAction """ self.__exec = _exec @property def http_get(self): """ Gets the http_get of this V1Probe. HTTPGet specifies the http request to perform. :return: The http_get of this V1Probe. :rtype: V1HTTPGetAction """ return self._http_get @http_get.setter def http_get(self, http_get): """ Sets the http_get of this V1Probe. HTTPGet specifies the http request to perform. :param http_get: The http_get of this V1Probe. :type: V1HTTPGetAction """ self._http_get = http_get @property def tcp_socket(self): """ Gets the tcp_socket of this V1Probe. TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported :return: The tcp_socket of this V1Probe. :rtype: V1TCPSocketAction """ return self._tcp_socket @tcp_socket.setter def tcp_socket(self, tcp_socket): """ Sets the tcp_socket of this V1Probe. TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported :param tcp_socket: The tcp_socket of this V1Probe. :type: V1TCPSocketAction """ self._tcp_socket = tcp_socket @property def initial_delay_seconds(self): """ Gets the initial_delay_seconds of this V1Probe. Number of seconds after the container has started before liveness probes are initiated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :return: The initial_delay_seconds of this V1Probe. :rtype: int """ return self._initial_delay_seconds @initial_delay_seconds.setter def initial_delay_seconds(self, initial_delay_seconds): """ Sets the initial_delay_seconds of this V1Probe. Number of seconds after the container has started before liveness probes are initiated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :param initial_delay_seconds: The initial_delay_seconds of this V1Probe. :type: int """ self._initial_delay_seconds = initial_delay_seconds @property def timeout_seconds(self): """ Gets the timeout_seconds of this V1Probe. Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :return: The timeout_seconds of this V1Probe. :rtype: int """ return self._timeout_seconds @timeout_seconds.setter def timeout_seconds(self, timeout_seconds): """ Sets the timeout_seconds of this V1Probe. Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :param timeout_seconds: The timeout_seconds of this V1Probe. :type: int """ self._timeout_seconds = timeout_seconds @property def period_seconds(self): """ Gets the period_seconds of this V1Probe. How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. :return: The period_seconds of this V1Probe. :rtype: int """ return self._period_seconds @period_seconds.setter def period_seconds(self, period_seconds): """ Sets the period_seconds of this V1Probe. How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. :param period_seconds: The period_seconds of this V1Probe. :type: int """ self._period_seconds = period_seconds @property def success_threshold(self): """ Gets the success_threshold of this V1Probe. Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. :return: The success_threshold of this V1Probe. :rtype: int """ return self._success_threshold @success_threshold.setter def success_threshold(self, success_threshold): """ Sets the success_threshold of this V1Probe. Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. :param success_threshold: The success_threshold of this V1Probe. :type: int """ self._success_threshold = success_threshold @property def failure_threshold(self): """ Gets the failure_threshold of this V1Probe. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. :return: The failure_threshold of this V1Probe. :rtype: int """ return self._failure_threshold @failure_threshold.setter def failure_threshold(self, failure_threshold): """ Sets the failure_threshold of this V1Probe. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. :param failure_threshold: The failure_threshold of this V1Probe. :type: int """ self._failure_threshold = failure_threshold def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_azure_file_volume_source.py0000664000567000056710000001037213046233226031705 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1AzureFileVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'secret_name': 'str', 'share_name': 'str', 'read_only': 'bool' } self.attribute_map = { 'secret_name': 'secretName', 'share_name': 'shareName', 'read_only': 'readOnly' } self._secret_name = None self._share_name = None self._read_only = None @property def secret_name(self): """ Gets the secret_name of this V1AzureFileVolumeSource. the name of secret that contains Azure Storage Account Name and Key :return: The secret_name of this V1AzureFileVolumeSource. :rtype: str """ return self._secret_name @secret_name.setter def secret_name(self, secret_name): """ Sets the secret_name of this V1AzureFileVolumeSource. the name of secret that contains Azure Storage Account Name and Key :param secret_name: The secret_name of this V1AzureFileVolumeSource. :type: str """ self._secret_name = secret_name @property def share_name(self): """ Gets the share_name of this V1AzureFileVolumeSource. Share Name :return: The share_name of this V1AzureFileVolumeSource. :rtype: str """ return self._share_name @share_name.setter def share_name(self, share_name): """ Sets the share_name of this V1AzureFileVolumeSource. Share Name :param share_name: The share_name of this V1AzureFileVolumeSource. :type: str """ self._share_name = share_name @property def read_only(self): """ Gets the read_only of this V1AzureFileVolumeSource. Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. :return: The read_only of this V1AzureFileVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1AzureFileVolumeSource. Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. :param read_only: The read_only of this V1AzureFileVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/json_watch_event.py0000664000567000056710000000662213046233226027546 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class JsonWatchEvent(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'type': 'str', 'object': 'str' } self.attribute_map = { 'type': 'type', 'object': 'object' } self._type = None self._object = None @property def type(self): """ Gets the type of this JsonWatchEvent. the type of watch event; may be ADDED, MODIFIED, DELETED, or ERROR :return: The type of this JsonWatchEvent. :rtype: str """ return self._type @type.setter def type(self, type): """ Sets the type of this JsonWatchEvent. the type of watch event; may be ADDED, MODIFIED, DELETED, or ERROR :param type: The type of this JsonWatchEvent. :type: str """ self._type = type @property def object(self): """ Gets the object of this JsonWatchEvent. the object being watched; will match the type of the resource endpoint or be a Status object if the type is ERROR :return: The object of this JsonWatchEvent. :rtype: str """ return self._object @object.setter def object(self, object): """ Sets the object of this JsonWatchEvent. the object being watched; will match the type of the resource endpoint or be a Status object if the type is ERROR :param object: The object of this JsonWatchEvent. :type: str """ self._object = object def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/unversioned_status_details.py0000664000567000056710000001450613046233226031657 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class UnversionedStatusDetails(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'group': 'str', 'kind': 'str', 'causes': 'list[UnversionedStatusCause]', 'retry_after_seconds': 'int' } self.attribute_map = { 'name': 'name', 'group': 'group', 'kind': 'kind', 'causes': 'causes', 'retry_after_seconds': 'retryAfterSeconds' } self._name = None self._group = None self._kind = None self._causes = None self._retry_after_seconds = None @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 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/release-1.2/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/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this UnversionedStatusDetails. :type: str """ self._kind = kind @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 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): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_flocker_volume_source.py0000664000567000056710000000556113046233226031211 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1FlockerVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'dataset_name': 'str' } self.attribute_map = { 'dataset_name': 'datasetName' } self._dataset_name = None @property def dataset_name(self): """ Gets the dataset_name of this V1FlockerVolumeSource. Required: the volume name. This is going to be store on metadata -> name on the payload for Flocker :return: The dataset_name of this V1FlockerVolumeSource. :rtype: str """ return self._dataset_name @dataset_name.setter def dataset_name(self, dataset_name): """ Sets the dataset_name of this V1FlockerVolumeSource. Required: the volume name. This is going to be store on metadata -> name on the payload for Flocker :param dataset_name: The dataset_name of this V1FlockerVolumeSource. :type: str """ self._dataset_name = dataset_name def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_downward_api_volume_file.py0000664000567000056710000000746213046233226031663 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1DownwardAPIVolumeFile(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'path': 'str', 'field_ref': 'V1ObjectFieldSelector' } self.attribute_map = { 'path': 'path', 'field_ref': 'fieldRef' } self._path = None self._field_ref = None @property def path(self): """ Gets the path of this V1DownwardAPIVolumeFile. Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' :return: The path of this V1DownwardAPIVolumeFile. :rtype: str """ return self._path @path.setter def path(self, path): """ Sets the path of this V1DownwardAPIVolumeFile. Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' :param path: The path of this V1DownwardAPIVolumeFile. :type: str """ self._path = path @property def field_ref(self): """ Gets the field_ref of this V1DownwardAPIVolumeFile. Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. :return: The field_ref of this V1DownwardAPIVolumeFile. :rtype: V1ObjectFieldSelector """ return self._field_ref @field_ref.setter def field_ref(self, field_ref): """ Sets the field_ref of this V1DownwardAPIVolumeFile. Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. :param field_ref: The field_ref of this V1DownwardAPIVolumeFile. :type: V1ObjectFieldSelector """ self._field_ref = field_ref def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_delete_options.py0000664000567000056710000001304513046233226027626 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1DeleteOptions(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'grace_period_seconds': 'int' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'grace_period_seconds': 'gracePeriodSeconds' } self._kind = None self._api_version = None self._grace_period_seconds = None @property def kind(self): """ Gets the kind of this V1DeleteOptions. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1DeleteOptions. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1DeleteOptions. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1DeleteOptions. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1DeleteOptions. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1DeleteOptions. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1DeleteOptions. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1DeleteOptions. :type: str """ self._api_version = api_version @property def grace_period_seconds(self): """ Gets the grace_period_seconds of this V1DeleteOptions. The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :return: The grace_period_seconds of this V1DeleteOptions. :rtype: int """ return self._grace_period_seconds @grace_period_seconds.setter def grace_period_seconds(self, grace_period_seconds): """ Sets the grace_period_seconds of this V1DeleteOptions. The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param grace_period_seconds: The grace_period_seconds of this V1DeleteOptions. :type: int """ self._grace_period_seconds = grace_period_seconds def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_aws_elastic_block_store_volume_source.py0000664000567000056710000001500613046233226034443 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1AWSElasticBlockStoreVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'volume_id': 'str', 'fs_type': 'str', 'partition': 'int', 'read_only': 'bool' } self.attribute_map = { 'volume_id': 'volumeID', 'fs_type': 'fsType', 'partition': 'partition', 'read_only': 'readOnly' } self._volume_id = None self._fs_type = None self._partition = None self._read_only = None @property def volume_id(self): """ Gets the volume_id of this V1AWSElasticBlockStoreVolumeSource. Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :return: The volume_id of this V1AWSElasticBlockStoreVolumeSource. :rtype: str """ return self._volume_id @volume_id.setter def volume_id(self, volume_id): """ Sets the volume_id of this V1AWSElasticBlockStoreVolumeSource. Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :param volume_id: The volume_id of this V1AWSElasticBlockStoreVolumeSource. :type: str """ self._volume_id = volume_id @property def fs_type(self): """ Gets the fs_type of this V1AWSElasticBlockStoreVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :return: The fs_type of this V1AWSElasticBlockStoreVolumeSource. :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): """ Sets the fs_type of this V1AWSElasticBlockStoreVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :param fs_type: The fs_type of this V1AWSElasticBlockStoreVolumeSource. :type: str """ self._fs_type = fs_type @property def partition(self): """ Gets the partition of this V1AWSElasticBlockStoreVolumeSource. The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). :return: The partition of this V1AWSElasticBlockStoreVolumeSource. :rtype: int """ return self._partition @partition.setter def partition(self, partition): """ Sets the partition of this V1AWSElasticBlockStoreVolumeSource. The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). :param partition: The partition of this V1AWSElasticBlockStoreVolumeSource. :type: int """ self._partition = partition @property def read_only(self): """ Gets the read_only of this V1AWSElasticBlockStoreVolumeSource. Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :return: The read_only of this V1AWSElasticBlockStoreVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1AWSElasticBlockStoreVolumeSource. Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :param read_only: The read_only of this V1AWSElasticBlockStoreVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_label_selector_requirement.py0000664000567000056710000001105513046233226032207 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1LabelSelectorRequirement(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'key': 'str', 'operator': 'str', 'values': 'list[str]' } self.attribute_map = { 'key': 'key', 'operator': 'operator', 'values': 'values' } self._key = None self._operator = None self._values = None @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 """ 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 """ 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): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_secret_key_selector.py0000664000567000056710000000657513046233226030660 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1SecretKeySelector(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'key': 'str' } self.attribute_map = { 'name': 'name', 'key': 'key' } self._name = None self._key = None @property def name(self): """ Gets the name of this V1SecretKeySelector. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :return: The name of this V1SecretKeySelector. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1SecretKeySelector. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1SecretKeySelector. :type: str """ self._name = name @property def key(self): """ Gets the key of this V1SecretKeySelector. The key of the secret to select from. Must be a valid secret key. :return: The key of this V1SecretKeySelector. :rtype: str """ return self._key @key.setter def key(self, key): """ Sets the key of this V1SecretKeySelector. The key of the secret to select from. Must be a valid secret key. :param key: The key of this V1SecretKeySelector. :type: str """ self._key = key def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_downward_api_volume_source.py0000664000567000056710000000536413046233226032243 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1DownwardAPIVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'items': 'list[V1DownwardAPIVolumeFile]' } self.attribute_map = { 'items': 'items' } self._items = None @property def items(self): """ Gets the items of this V1DownwardAPIVolumeSource. Items is a list of downward API volume file :return: The items of this V1DownwardAPIVolumeSource. :rtype: list[V1DownwardAPIVolumeFile] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1DownwardAPIVolumeSource. Items is a list of downward API volume file :param items: The items of this V1DownwardAPIVolumeSource. :type: list[V1DownwardAPIVolumeFile] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_git_repo_volume_source.py0000664000567000056710000001064213046233226031370 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1GitRepoVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'repository': 'str', 'revision': 'str', 'directory': 'str' } self.attribute_map = { 'repository': 'repository', 'revision': 'revision', 'directory': 'directory' } self._repository = None self._revision = None self._directory = None @property def repository(self): """ Gets the repository of this V1GitRepoVolumeSource. Repository URL :return: The repository of this V1GitRepoVolumeSource. :rtype: str """ return self._repository @repository.setter def repository(self, repository): """ Sets the repository of this V1GitRepoVolumeSource. Repository URL :param repository: The repository of this V1GitRepoVolumeSource. :type: str """ self._repository = repository @property def revision(self): """ Gets the revision of this V1GitRepoVolumeSource. Commit hash for the specified revision. :return: The revision of this V1GitRepoVolumeSource. :rtype: str """ return self._revision @revision.setter def revision(self, revision): """ Sets the revision of this V1GitRepoVolumeSource. Commit hash for the specified revision. :param revision: The revision of this V1GitRepoVolumeSource. :type: str """ self._revision = revision @property def directory(self): """ Gets the directory of this V1GitRepoVolumeSource. Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. :return: The directory of this V1GitRepoVolumeSource. :rtype: str """ return self._directory @directory.setter def directory(self, directory): """ Sets the directory of this V1GitRepoVolumeSource. Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. :param directory: The directory of this V1GitRepoVolumeSource. :type: str """ self._directory = directory def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_env_var_source.py0000664000567000056710000001062613046233226027633 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1EnvVarSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'field_ref': 'V1ObjectFieldSelector', 'config_map_key_ref': 'V1ConfigMapKeySelector', 'secret_key_ref': 'V1SecretKeySelector' } self.attribute_map = { 'field_ref': 'fieldRef', 'config_map_key_ref': 'configMapKeyRef', 'secret_key_ref': 'secretKeyRef' } self._field_ref = None self._config_map_key_ref = None self._secret_key_ref = None @property def field_ref(self): """ Gets the field_ref of this V1EnvVarSource. Selects a field of the pod; only name and namespace are supported. :return: The field_ref of this V1EnvVarSource. :rtype: V1ObjectFieldSelector """ return self._field_ref @field_ref.setter def field_ref(self, field_ref): """ Sets the field_ref of this V1EnvVarSource. Selects a field of the pod; only name and namespace are supported. :param field_ref: The field_ref of this V1EnvVarSource. :type: V1ObjectFieldSelector """ self._field_ref = field_ref @property def config_map_key_ref(self): """ Gets the config_map_key_ref of this V1EnvVarSource. Selects a key of a ConfigMap. :return: The config_map_key_ref of this V1EnvVarSource. :rtype: V1ConfigMapKeySelector """ return self._config_map_key_ref @config_map_key_ref.setter def config_map_key_ref(self, config_map_key_ref): """ Sets the config_map_key_ref of this V1EnvVarSource. Selects a key of a ConfigMap. :param config_map_key_ref: The config_map_key_ref of this V1EnvVarSource. :type: V1ConfigMapKeySelector """ self._config_map_key_ref = config_map_key_ref @property def secret_key_ref(self): """ Gets the secret_key_ref of this V1EnvVarSource. Selects a key of a secret in the pod's namespace :return: The secret_key_ref of this V1EnvVarSource. :rtype: V1SecretKeySelector """ return self._secret_key_ref @secret_key_ref.setter def secret_key_ref(self, secret_key_ref): """ Sets the secret_key_ref of this V1EnvVarSource. Selects a key of a secret in the pod's namespace :param secret_key_ref: The secret_key_ref of this V1EnvVarSource. :type: V1SecretKeySelector """ self._secret_key_ref = secret_key_ref def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_volume.py0000664000567000056710000005021613046233226026121 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Volume(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'host_path': 'V1HostPathVolumeSource', 'empty_dir': 'V1EmptyDirVolumeSource', 'gce_persistent_disk': 'V1GCEPersistentDiskVolumeSource', 'aws_elastic_block_store': 'V1AWSElasticBlockStoreVolumeSource', 'git_repo': 'V1GitRepoVolumeSource', 'secret': 'V1SecretVolumeSource', 'nfs': 'V1NFSVolumeSource', 'iscsi': 'V1ISCSIVolumeSource', 'glusterfs': 'V1GlusterfsVolumeSource', 'persistent_volume_claim': 'V1PersistentVolumeClaimVolumeSource', 'rbd': 'V1RBDVolumeSource', 'flex_volume': 'V1FlexVolumeSource', 'cinder': 'V1CinderVolumeSource', 'cephfs': 'V1CephFSVolumeSource', 'flocker': 'V1FlockerVolumeSource', 'downward_api': 'V1DownwardAPIVolumeSource', 'fc': 'V1FCVolumeSource', 'azure_file': 'V1AzureFileVolumeSource', 'config_map': 'V1ConfigMapVolumeSource' } self.attribute_map = { 'name': 'name', 'host_path': 'hostPath', 'empty_dir': 'emptyDir', 'gce_persistent_disk': 'gcePersistentDisk', 'aws_elastic_block_store': 'awsElasticBlockStore', 'git_repo': 'gitRepo', 'secret': 'secret', 'nfs': 'nfs', 'iscsi': 'iscsi', 'glusterfs': 'glusterfs', 'persistent_volume_claim': 'persistentVolumeClaim', 'rbd': 'rbd', 'flex_volume': 'flexVolume', 'cinder': 'cinder', 'cephfs': 'cephfs', 'flocker': 'flocker', 'downward_api': 'downwardAPI', 'fc': 'fc', 'azure_file': 'azureFile', 'config_map': 'configMap' } self._name = None self._host_path = None self._empty_dir = None self._gce_persistent_disk = None self._aws_elastic_block_store = None self._git_repo = None self._secret = None self._nfs = None self._iscsi = None self._glusterfs = None self._persistent_volume_claim = None self._rbd = None self._flex_volume = None self._cinder = None self._cephfs = None self._flocker = None self._downward_api = None self._fc = None self._azure_file = None self._config_map = None @property def name(self): """ Gets the name of this V1Volume. Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :return: The name of this V1Volume. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1Volume. Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1Volume. :type: str """ self._name = name @property def host_path(self): """ Gets the host_path of this V1Volume. HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath :return: The host_path of this V1Volume. :rtype: V1HostPathVolumeSource """ return self._host_path @host_path.setter def host_path(self, host_path): """ Sets the host_path of this V1Volume. HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath :param host_path: The host_path of this V1Volume. :type: V1HostPathVolumeSource """ self._host_path = host_path @property def empty_dir(self): """ Gets the empty_dir of this V1Volume. EmptyDir represents a temporary directory that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir :return: The empty_dir of this V1Volume. :rtype: V1EmptyDirVolumeSource """ return self._empty_dir @empty_dir.setter def empty_dir(self, empty_dir): """ Sets the empty_dir of this V1Volume. EmptyDir represents a temporary directory that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir :param empty_dir: The empty_dir of this V1Volume. :type: V1EmptyDirVolumeSource """ self._empty_dir = empty_dir @property def gce_persistent_disk(self): """ Gets the gce_persistent_disk of this V1Volume. GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :return: The gce_persistent_disk of this V1Volume. :rtype: V1GCEPersistentDiskVolumeSource """ return self._gce_persistent_disk @gce_persistent_disk.setter def gce_persistent_disk(self, gce_persistent_disk): """ Sets the gce_persistent_disk of this V1Volume. GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :param gce_persistent_disk: The gce_persistent_disk of this V1Volume. :type: V1GCEPersistentDiskVolumeSource """ self._gce_persistent_disk = gce_persistent_disk @property def aws_elastic_block_store(self): """ Gets the aws_elastic_block_store of this V1Volume. AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :return: The aws_elastic_block_store of this V1Volume. :rtype: V1AWSElasticBlockStoreVolumeSource """ return self._aws_elastic_block_store @aws_elastic_block_store.setter def aws_elastic_block_store(self, aws_elastic_block_store): """ Sets the aws_elastic_block_store of this V1Volume. AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :param aws_elastic_block_store: The aws_elastic_block_store of this V1Volume. :type: V1AWSElasticBlockStoreVolumeSource """ self._aws_elastic_block_store = aws_elastic_block_store @property def git_repo(self): """ Gets the git_repo of this V1Volume. GitRepo represents a git repository at a particular revision. :return: The git_repo of this V1Volume. :rtype: V1GitRepoVolumeSource """ return self._git_repo @git_repo.setter def git_repo(self, git_repo): """ Sets the git_repo of this V1Volume. GitRepo represents a git repository at a particular revision. :param git_repo: The git_repo of this V1Volume. :type: V1GitRepoVolumeSource """ self._git_repo = git_repo @property def secret(self): """ Gets the secret of this V1Volume. Secret represents a secret that should populate this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets :return: The secret of this V1Volume. :rtype: V1SecretVolumeSource """ return self._secret @secret.setter def secret(self, secret): """ Sets the secret of this V1Volume. Secret represents a secret that should populate this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets :param secret: The secret of this V1Volume. :type: V1SecretVolumeSource """ self._secret = secret @property def nfs(self): """ Gets the nfs of this V1Volume. NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :return: The nfs of this V1Volume. :rtype: V1NFSVolumeSource """ return self._nfs @nfs.setter def nfs(self, nfs): """ Sets the nfs of this V1Volume. NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :param nfs: The nfs of this V1Volume. :type: V1NFSVolumeSource """ self._nfs = nfs @property def iscsi(self): """ Gets the iscsi of this V1Volume. ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/examples/iscsi/README.md :return: The iscsi of this V1Volume. :rtype: V1ISCSIVolumeSource """ return self._iscsi @iscsi.setter def iscsi(self, iscsi): """ Sets the iscsi of this V1Volume. ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/examples/iscsi/README.md :param iscsi: The iscsi of this V1Volume. :type: V1ISCSIVolumeSource """ self._iscsi = iscsi @property def glusterfs(self): """ Gets the glusterfs of this V1Volume. Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md :return: The glusterfs of this V1Volume. :rtype: V1GlusterfsVolumeSource """ return self._glusterfs @glusterfs.setter def glusterfs(self, glusterfs): """ Sets the glusterfs of this V1Volume. Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md :param glusterfs: The glusterfs of this V1Volume. :type: V1GlusterfsVolumeSource """ self._glusterfs = glusterfs @property def persistent_volume_claim(self): """ Gets the persistent_volume_claim of this V1Volume. PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :return: The persistent_volume_claim of this V1Volume. :rtype: V1PersistentVolumeClaimVolumeSource """ return self._persistent_volume_claim @persistent_volume_claim.setter def persistent_volume_claim(self, persistent_volume_claim): """ Sets the persistent_volume_claim of this V1Volume. PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :param persistent_volume_claim: The persistent_volume_claim of this V1Volume. :type: V1PersistentVolumeClaimVolumeSource """ self._persistent_volume_claim = persistent_volume_claim @property def rbd(self): """ Gets the rbd of this V1Volume. RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md :return: The rbd of this V1Volume. :rtype: V1RBDVolumeSource """ return self._rbd @rbd.setter def rbd(self, rbd): """ Sets the rbd of this V1Volume. RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md :param rbd: The rbd of this V1Volume. :type: V1RBDVolumeSource """ self._rbd = rbd @property def flex_volume(self): """ Gets the flex_volume of this V1Volume. FlexVolume represents a generic volume resource that is provisioned/attached using a exec based plugin. This is an alpha feature and may change in future. :return: The flex_volume of this V1Volume. :rtype: V1FlexVolumeSource """ return self._flex_volume @flex_volume.setter def flex_volume(self, flex_volume): """ Sets the flex_volume of this V1Volume. FlexVolume represents a generic volume resource that is provisioned/attached using a exec based plugin. This is an alpha feature and may change in future. :param flex_volume: The flex_volume of this V1Volume. :type: V1FlexVolumeSource """ self._flex_volume = flex_volume @property def cinder(self): """ Gets the cinder of this V1Volume. Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :return: The cinder of this V1Volume. :rtype: V1CinderVolumeSource """ return self._cinder @cinder.setter def cinder(self, cinder): """ Sets the cinder of this V1Volume. Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :param cinder: The cinder of this V1Volume. :type: V1CinderVolumeSource """ self._cinder = cinder @property def cephfs(self): """ Gets the cephfs of this V1Volume. CephFS represents a Ceph FS mount on the host that shares a pod's lifetime :return: The cephfs of this V1Volume. :rtype: V1CephFSVolumeSource """ return self._cephfs @cephfs.setter def cephfs(self, cephfs): """ Sets the cephfs of this V1Volume. CephFS represents a Ceph FS mount on the host that shares a pod's lifetime :param cephfs: The cephfs of this V1Volume. :type: V1CephFSVolumeSource """ self._cephfs = cephfs @property def flocker(self): """ Gets the flocker of this V1Volume. Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running :return: The flocker of this V1Volume. :rtype: V1FlockerVolumeSource """ return self._flocker @flocker.setter def flocker(self, flocker): """ Sets the flocker of this V1Volume. Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running :param flocker: The flocker of this V1Volume. :type: V1FlockerVolumeSource """ self._flocker = flocker @property def downward_api(self): """ Gets the downward_api of this V1Volume. DownwardAPI represents downward API about the pod that should populate this volume :return: The downward_api of this V1Volume. :rtype: V1DownwardAPIVolumeSource """ return self._downward_api @downward_api.setter def downward_api(self, downward_api): """ Sets the downward_api of this V1Volume. DownwardAPI represents downward API about the pod that should populate this volume :param downward_api: The downward_api of this V1Volume. :type: V1DownwardAPIVolumeSource """ self._downward_api = downward_api @property def fc(self): """ Gets the fc of this V1Volume. FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. :return: The fc of this V1Volume. :rtype: V1FCVolumeSource """ return self._fc @fc.setter def fc(self, fc): """ Sets the fc of this V1Volume. FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. :param fc: The fc of this V1Volume. :type: V1FCVolumeSource """ self._fc = fc @property def azure_file(self): """ Gets the azure_file of this V1Volume. AzureFile represents an Azure File Service mount on the host and bind mount to the pod. :return: The azure_file of this V1Volume. :rtype: V1AzureFileVolumeSource """ return self._azure_file @azure_file.setter def azure_file(self, azure_file): """ Sets the azure_file of this V1Volume. AzureFile represents an Azure File Service mount on the host and bind mount to the pod. :param azure_file: The azure_file of this V1Volume. :type: V1AzureFileVolumeSource """ self._azure_file = azure_file @property def config_map(self): """ Gets the config_map of this V1Volume. ConfigMap represents a configMap that should populate this volume :return: The config_map of this V1Volume. :rtype: V1ConfigMapVolumeSource """ return self._config_map @config_map.setter def config_map(self, config_map): """ Sets the config_map of this V1Volume. ConfigMap represents a configMap that should populate this volume :param config_map: The config_map of this V1Volume. :type: V1ConfigMapVolumeSource """ self._config_map = config_map def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_local_object_reference.py0000664000567000056710000000540113046233226031244 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1LocalObjectReference(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str' } self.attribute_map = { 'name': 'name' } self._name = None @property def name(self): """ Gets the name of this V1LocalObjectReference. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :return: The name of this V1LocalObjectReference. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1LocalObjectReference. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1LocalObjectReference. :type: str """ self._name = name def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_env_var.py0000664000567000056710000001126113046233226026247 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1EnvVar(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'value': 'str', 'value_from': 'V1EnvVarSource' } self.attribute_map = { 'name': 'name', 'value': 'value', 'value_from': 'valueFrom' } self._name = None self._value = None self._value_from = None @property def name(self): """ Gets the name of this V1EnvVar. Name of the environment variable. Must be a C_IDENTIFIER. :return: The name of this V1EnvVar. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1EnvVar. Name of the environment variable. Must be a C_IDENTIFIER. :param name: The name of this V1EnvVar. :type: str """ self._name = name @property def value(self): """ Gets the value of this V1EnvVar. Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". :return: The value of this V1EnvVar. :rtype: str """ return self._value @value.setter def value(self, value): """ Sets the value of this V1EnvVar. Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". :param value: The value of this V1EnvVar. :type: str """ self._value = value @property def value_from(self): """ Gets the value_from of this V1EnvVar. Source for the environment variable's value. Cannot be used if value is not empty. :return: The value_from of this V1EnvVar. :rtype: V1EnvVarSource """ return self._value_from @value_from.setter def value_from(self, value_from): """ Sets the value_from of this V1EnvVar. Source for the environment variable's value. Cannot be used if value is not empty. :param value_from: The value_from of this V1EnvVar. :type: V1EnvVarSource """ self._value_from = value_from def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_se_linux_options.py0000664000567000056710000001103413046233226030206 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1SELinuxOptions(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'user': 'str', 'role': 'str', 'type': 'str', 'level': 'str' } self.attribute_map = { 'user': 'user', 'role': 'role', 'type': 'type', 'level': 'level' } self._user = None self._role = None self._type = None self._level = None @property def user(self): """ Gets the user of this V1SELinuxOptions. User is a SELinux user label that applies to the container. :return: The user of this V1SELinuxOptions. :rtype: str """ return self._user @user.setter def user(self, user): """ Sets the user of this V1SELinuxOptions. User is a SELinux user label that applies to the container. :param user: The user of this V1SELinuxOptions. :type: str """ self._user = user @property def role(self): """ Gets the role of this V1SELinuxOptions. Role is a SELinux role label that applies to the container. :return: The role of this V1SELinuxOptions. :rtype: str """ return self._role @role.setter def role(self, role): """ Sets the role of this V1SELinuxOptions. Role is a SELinux role label that applies to the container. :param role: The role of this V1SELinuxOptions. :type: str """ self._role = role @property def type(self): """ Gets the type of this V1SELinuxOptions. Type is a SELinux type label that applies to the container. :return: The type of this V1SELinuxOptions. :rtype: str """ return self._type @type.setter def type(self, type): """ Sets the type of this V1SELinuxOptions. Type is a SELinux type label that applies to the container. :param type: The type of this V1SELinuxOptions. :type: str """ self._type = type @property def level(self): """ Gets the level of this V1SELinuxOptions. Level is SELinux level label that applies to the container. :return: The level of this V1SELinuxOptions. :rtype: str """ return self._level @level.setter def level(self, level): """ Sets the level of this V1SELinuxOptions. Level is SELinux level label that applies to the container. :param level: The level of this V1SELinuxOptions. :type: str """ self._level = level def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_gce_persistent_disk_volume_source.py0000664000567000056710000001501313046233226033605 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1GCEPersistentDiskVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'pd_name': 'str', 'fs_type': 'str', 'partition': 'int', 'read_only': 'bool' } self.attribute_map = { 'pd_name': 'pdName', 'fs_type': 'fsType', 'partition': 'partition', 'read_only': 'readOnly' } self._pd_name = None self._fs_type = None self._partition = None self._read_only = None @property def pd_name(self): """ Gets the pd_name of this V1GCEPersistentDiskVolumeSource. Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :return: The pd_name of this V1GCEPersistentDiskVolumeSource. :rtype: str """ return self._pd_name @pd_name.setter def pd_name(self, pd_name): """ Sets the pd_name of this V1GCEPersistentDiskVolumeSource. Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :param pd_name: The pd_name of this V1GCEPersistentDiskVolumeSource. :type: str """ self._pd_name = pd_name @property def fs_type(self): """ Gets the fs_type of this V1GCEPersistentDiskVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :return: The fs_type of this V1GCEPersistentDiskVolumeSource. :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): """ Sets the fs_type of this V1GCEPersistentDiskVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :param fs_type: The fs_type of this V1GCEPersistentDiskVolumeSource. :type: str """ self._fs_type = fs_type @property def partition(self): """ Gets the partition of this V1GCEPersistentDiskVolumeSource. The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :return: The partition of this V1GCEPersistentDiskVolumeSource. :rtype: int """ return self._partition @partition.setter def partition(self, partition): """ Sets the partition of this V1GCEPersistentDiskVolumeSource. The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :param partition: The partition of this V1GCEPersistentDiskVolumeSource. :type: int """ self._partition = partition @property def read_only(self): """ Gets the read_only of this V1GCEPersistentDiskVolumeSource. ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :return: The read_only of this V1GCEPersistentDiskVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1GCEPersistentDiskVolumeSource. ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :param read_only: The read_only of this V1GCEPersistentDiskVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/integer.py0000664000567000056710000000403313046233226025635 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class Integer(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { } self.attribute_map = { } def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_config_map_volume_source.py0000664000567000056710000001036113046233226031660 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ConfigMapVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'items': 'list[V1KeyToPath]' } self.attribute_map = { 'name': 'name', 'items': 'items' } self._name = None self._items = None @property def name(self): """ Gets the name of this V1ConfigMapVolumeSource. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :return: The name of this V1ConfigMapVolumeSource. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1ConfigMapVolumeSource. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1ConfigMapVolumeSource. :type: str """ self._name = name @property def items(self): """ Gets the items of this V1ConfigMapVolumeSource. If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'. :return: The items of this V1ConfigMapVolumeSource. :rtype: list[V1KeyToPath] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1ConfigMapVolumeSource. If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'. :param items: The items of this V1ConfigMapVolumeSource. :type: list[V1KeyToPath] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/unversioned_status.py0000664000567000056710000002230313046233226030144 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class UnversionedStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'status': 'str', 'message': 'str', 'reason': 'str', 'details': 'UnversionedStatusDetails', 'code': 'int' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'status': 'status', 'message': 'message', 'reason': 'reason', 'details': 'details', 'code': 'code' } self._kind = None self._api_version = None self._metadata = None self._status = None self._message = None self._reason = None self._details = None self._code = None @property def kind(self): """ Gets the kind of this UnversionedStatus. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this UnversionedStatus. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this UnversionedStatus. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this UnversionedStatus. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this UnversionedStatus. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this UnversionedStatus. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this UnversionedStatus. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this UnversionedStatus. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this UnversionedStatus. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this UnversionedStatus. :rtype: UnversionedListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this UnversionedStatus. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this UnversionedStatus. :type: UnversionedListMeta """ self._metadata = metadata @property def status(self): """ Gets the status of this UnversionedStatus. Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The status of this UnversionedStatus. :rtype: str """ return self._status @status.setter def status(self, status): """ Sets the status of this UnversionedStatus. Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param status: The status of this UnversionedStatus. :type: str """ self._status = status @property def message(self): """ Gets the message of this UnversionedStatus. A human-readable description of the status of this operation. :return: The message of this UnversionedStatus. :rtype: str """ return self._message @message.setter def message(self, message): """ Sets the message of this UnversionedStatus. A human-readable description of the status of this operation. :param message: The message of this UnversionedStatus. :type: str """ self._message = message @property def reason(self): """ Gets the reason of this UnversionedStatus. A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. :return: The reason of this UnversionedStatus. :rtype: str """ return self._reason @reason.setter def reason(self, reason): """ Sets the reason of this UnversionedStatus. A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. :param reason: The reason of this UnversionedStatus. :type: str """ self._reason = reason @property def details(self): """ Gets the details of this UnversionedStatus. Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. :return: The details of this UnversionedStatus. :rtype: UnversionedStatusDetails """ return self._details @details.setter def details(self, details): """ Sets the details of this UnversionedStatus. Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. :param details: The details of this UnversionedStatus. :type: UnversionedStatusDetails """ self._details = details @property def code(self): """ Gets the code of this UnversionedStatus. Suggested HTTP return code for this status, 0 if not set. :return: The code of this UnversionedStatus. :rtype: int """ return self._code @code.setter def code(self, code): """ Sets the code of this UnversionedStatus. Suggested HTTP return code for this status, 0 if not set. :param code: The code of this UnversionedStatus. :type: int """ self._code = code def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/unversioned_list_meta.py0000664000567000056710000001030513046233226030601 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class UnversionedListMeta(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'self_link': 'str', 'resource_version': 'str' } self.attribute_map = { 'self_link': 'selfLink', 'resource_version': 'resourceVersion' } self._self_link = None self._resource_version = None @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 @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/release-1.2/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/release-1.2/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 def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_http_get_action.py0000664000567000056710000001300413046233226027757 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1HTTPGetAction(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'path': 'str', 'port': 'str', 'host': 'str', 'scheme': 'str', 'http_headers': 'list[V1HTTPHeader]' } self.attribute_map = { 'path': 'path', 'port': 'port', 'host': 'host', 'scheme': 'scheme', 'http_headers': 'httpHeaders' } self._path = None self._port = None self._host = None self._scheme = None self._http_headers = None @property def path(self): """ Gets the path of this V1HTTPGetAction. Path to access on the HTTP server. :return: The path of this V1HTTPGetAction. :rtype: str """ return self._path @path.setter def path(self, path): """ Sets the path of this V1HTTPGetAction. Path to access on the HTTP server. :param path: The path of this V1HTTPGetAction. :type: str """ self._path = path @property def port(self): """ Gets the port of this V1HTTPGetAction. Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. :return: The port of this V1HTTPGetAction. :rtype: str """ return self._port @port.setter def port(self, port): """ Sets the port of this V1HTTPGetAction. Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. :param port: The port of this V1HTTPGetAction. :type: str """ self._port = port @property def host(self): """ Gets the host of this V1HTTPGetAction. Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. :return: The host of this V1HTTPGetAction. :rtype: str """ return self._host @host.setter def host(self, host): """ Sets the host of this V1HTTPGetAction. Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. :param host: The host of this V1HTTPGetAction. :type: str """ self._host = host @property def scheme(self): """ Gets the scheme of this V1HTTPGetAction. Scheme to use for connecting to the host. Defaults to HTTP. :return: The scheme of this V1HTTPGetAction. :rtype: str """ return self._scheme @scheme.setter def scheme(self, scheme): """ Sets the scheme of this V1HTTPGetAction. Scheme to use for connecting to the host. Defaults to HTTP. :param scheme: The scheme of this V1HTTPGetAction. :type: str """ self._scheme = scheme @property def http_headers(self): """ Gets the http_headers of this V1HTTPGetAction. Custom headers to set in the request. HTTP allows repeated headers. :return: The http_headers of this V1HTTPGetAction. :rtype: list[V1HTTPHeader] """ return self._http_headers @http_headers.setter def http_headers(self, http_headers): """ Sets the http_headers of this V1HTTPGetAction. Custom headers to set in the request. HTTP allows repeated headers. :param http_headers: The http_headers of this V1HTTPGetAction. :type: list[V1HTTPHeader] """ self._http_headers = http_headers def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_empty_dir_volume_source.py0000664000567000056710000000610113046233226031547 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1EmptyDirVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'medium': 'str' } self.attribute_map = { 'medium': 'medium' } self._medium = None @property def medium(self): """ Gets the medium of this V1EmptyDirVolumeSource. What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir :return: The medium of this V1EmptyDirVolumeSource. :rtype: str """ return self._medium @medium.setter def medium(self, medium): """ Sets the medium of this V1EmptyDirVolumeSource. What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir :param medium: The medium of this V1EmptyDirVolumeSource. :type: str """ self._medium = medium def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_lifecycle.py0000664000567000056710000001121113046233226026541 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Lifecycle(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'post_start': 'V1Handler', 'pre_stop': 'V1Handler' } self.attribute_map = { 'post_start': 'postStart', 'pre_stop': 'preStop' } self._post_start = None self._pre_stop = None @property def post_start(self): """ Gets the post_start of this V1Lifecycle. PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details :return: The post_start of this V1Lifecycle. :rtype: V1Handler """ return self._post_start @post_start.setter def post_start(self, post_start): """ Sets the post_start of this V1Lifecycle. PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details :param post_start: The post_start of this V1Lifecycle. :type: V1Handler """ self._post_start = post_start @property def pre_stop(self): """ Gets the pre_stop of this V1Lifecycle. PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details :return: The pre_stop of this V1Lifecycle. :rtype: V1Handler """ return self._pre_stop @pre_stop.setter def pre_stop(self, pre_stop): """ Sets the pre_stop of this V1Lifecycle. PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details :param pre_stop: The pre_stop of this V1Lifecycle. :type: V1Handler """ self._pre_stop = pre_stop def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_handler.py0000664000567000056710000001022013046233226026216 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Handler(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { '_exec': 'V1ExecAction', 'http_get': 'V1HTTPGetAction', 'tcp_socket': 'V1TCPSocketAction' } self.attribute_map = { '_exec': 'exec', 'http_get': 'httpGet', 'tcp_socket': 'tcpSocket' } self.__exec = None self._http_get = None self._tcp_socket = None @property def _exec(self): """ Gets the _exec of this V1Handler. One and only one of the following should be specified. Exec specifies the action to take. :return: The _exec of this V1Handler. :rtype: V1ExecAction """ return self.__exec @_exec.setter def _exec(self, _exec): """ Sets the _exec of this V1Handler. One and only one of the following should be specified. Exec specifies the action to take. :param _exec: The _exec of this V1Handler. :type: V1ExecAction """ self.__exec = _exec @property def http_get(self): """ Gets the http_get of this V1Handler. HTTPGet specifies the http request to perform. :return: The http_get of this V1Handler. :rtype: V1HTTPGetAction """ return self._http_get @http_get.setter def http_get(self, http_get): """ Sets the http_get of this V1Handler. HTTPGet specifies the http request to perform. :param http_get: The http_get of this V1Handler. :type: V1HTTPGetAction """ self._http_get = http_get @property def tcp_socket(self): """ Gets the tcp_socket of this V1Handler. TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported :return: The tcp_socket of this V1Handler. :rtype: V1TCPSocketAction """ return self._tcp_socket @tcp_socket.setter def tcp_socket(self, tcp_socket): """ Sets the tcp_socket of this V1Handler. TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported :param tcp_socket: The tcp_socket of this V1Handler. :type: V1TCPSocketAction """ self._tcp_socket = tcp_socket def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_config_map_key_selector.py0000664000567000056710000000647013046233226031467 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ConfigMapKeySelector(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'key': 'str' } self.attribute_map = { 'name': 'name', 'key': 'key' } self._name = None self._key = None @property def name(self): """ Gets the name of this V1ConfigMapKeySelector. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :return: The name of this V1ConfigMapKeySelector. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1ConfigMapKeySelector. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1ConfigMapKeySelector. :type: str """ self._name = name @property def key(self): """ Gets the key of this V1ConfigMapKeySelector. The key to select. :return: The key of this V1ConfigMapKeySelector. :rtype: str """ return self._key @key.setter def key(self, key): """ Sets the key of this V1ConfigMapKeySelector. The key to select. :param key: The key of this V1ConfigMapKeySelector. :type: str """ self._key = key def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_host_path_volume_source.py0000664000567000056710000000543113046233226031551 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1HostPathVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'path': 'str' } self.attribute_map = { 'path': 'path' } self._path = None @property def path(self): """ Gets the path of this V1HostPathVolumeSource. Path of the directory on the host. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath :return: The path of this V1HostPathVolumeSource. :rtype: str """ return self._path @path.setter def path(self, path): """ Sets the path of this V1HostPathVolumeSource. Path of the directory on the host. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath :param path: The path of this V1HostPathVolumeSource. :type: str """ self._path = path def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_iscsi_volume_source.py0000664000567000056710000001552613046233226030700 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ISCSIVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'target_portal': 'str', 'iqn': 'str', 'lun': 'int', 'iscsi_interface': 'str', 'fs_type': 'str', 'read_only': 'bool' } self.attribute_map = { 'target_portal': 'targetPortal', 'iqn': 'iqn', 'lun': 'lun', 'iscsi_interface': 'iscsiInterface', 'fs_type': 'fsType', 'read_only': 'readOnly' } self._target_portal = None self._iqn = None self._lun = None self._iscsi_interface = None self._fs_type = None self._read_only = None @property def target_portal(self): """ Gets the target_portal of this V1ISCSIVolumeSource. iSCSI target portal. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). :return: The target_portal of this V1ISCSIVolumeSource. :rtype: str """ return self._target_portal @target_portal.setter def target_portal(self, target_portal): """ Sets the target_portal of this V1ISCSIVolumeSource. iSCSI target portal. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). :param target_portal: The target_portal of this V1ISCSIVolumeSource. :type: str """ self._target_portal = target_portal @property def iqn(self): """ Gets the iqn of this V1ISCSIVolumeSource. Target iSCSI Qualified Name. :return: The iqn of this V1ISCSIVolumeSource. :rtype: str """ return self._iqn @iqn.setter def iqn(self, iqn): """ Sets the iqn of this V1ISCSIVolumeSource. Target iSCSI Qualified Name. :param iqn: The iqn of this V1ISCSIVolumeSource. :type: str """ self._iqn = iqn @property def lun(self): """ Gets the lun of this V1ISCSIVolumeSource. iSCSI target lun number. :return: The lun of this V1ISCSIVolumeSource. :rtype: int """ return self._lun @lun.setter def lun(self, lun): """ Sets the lun of this V1ISCSIVolumeSource. iSCSI target lun number. :param lun: The lun of this V1ISCSIVolumeSource. :type: int """ self._lun = lun @property def iscsi_interface(self): """ Gets the iscsi_interface of this V1ISCSIVolumeSource. Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport. :return: The iscsi_interface of this V1ISCSIVolumeSource. :rtype: str """ return self._iscsi_interface @iscsi_interface.setter def iscsi_interface(self, iscsi_interface): """ Sets the iscsi_interface of this V1ISCSIVolumeSource. Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport. :param iscsi_interface: The iscsi_interface of this V1ISCSIVolumeSource. :type: str """ self._iscsi_interface = iscsi_interface @property def fs_type(self): """ Gets the fs_type of this V1ISCSIVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#iscsi :return: The fs_type of this V1ISCSIVolumeSource. :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): """ Sets the fs_type of this V1ISCSIVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#iscsi :param fs_type: The fs_type of this V1ISCSIVolumeSource. :type: str """ self._fs_type = fs_type @property def read_only(self): """ Gets the read_only of this V1ISCSIVolumeSource. ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. :return: The read_only of this V1ISCSIVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1ISCSIVolumeSource. ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. :param read_only: The read_only of this V1ISCSIVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_ceph_fs_volume_source.py0000664000567000056710000001653113046233226031172 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1CephFSVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'monitors': 'list[str]', 'path': 'str', 'user': 'str', 'secret_file': 'str', 'secret_ref': 'V1LocalObjectReference', 'read_only': 'bool' } self.attribute_map = { 'monitors': 'monitors', 'path': 'path', 'user': 'user', 'secret_file': 'secretFile', 'secret_ref': 'secretRef', 'read_only': 'readOnly' } self._monitors = None self._path = None self._user = None self._secret_file = None self._secret_ref = None self._read_only = None @property def monitors(self): """ Gets the monitors of this V1CephFSVolumeSource. Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :return: The monitors of this V1CephFSVolumeSource. :rtype: list[str] """ return self._monitors @monitors.setter def monitors(self, monitors): """ Sets the monitors of this V1CephFSVolumeSource. Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :param monitors: The monitors of this V1CephFSVolumeSource. :type: list[str] """ self._monitors = monitors @property def path(self): """ Gets the path of this V1CephFSVolumeSource. Optional: Used as the mounted root, rather than the full Ceph tree, default is / :return: The path of this V1CephFSVolumeSource. :rtype: str """ return self._path @path.setter def path(self, path): """ Sets the path of this V1CephFSVolumeSource. Optional: Used as the mounted root, rather than the full Ceph tree, default is / :param path: The path of this V1CephFSVolumeSource. :type: str """ self._path = path @property def user(self): """ Gets the user of this V1CephFSVolumeSource. Optional: User is the rados user name, default is admin More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :return: The user of this V1CephFSVolumeSource. :rtype: str """ return self._user @user.setter def user(self, user): """ Sets the user of this V1CephFSVolumeSource. Optional: User is the rados user name, default is admin More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :param user: The user of this V1CephFSVolumeSource. :type: str """ self._user = user @property def secret_file(self): """ Gets the secret_file of this V1CephFSVolumeSource. Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :return: The secret_file of this V1CephFSVolumeSource. :rtype: str """ return self._secret_file @secret_file.setter def secret_file(self, secret_file): """ Sets the secret_file of this V1CephFSVolumeSource. Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :param secret_file: The secret_file of this V1CephFSVolumeSource. :type: str """ self._secret_file = secret_file @property def secret_ref(self): """ Gets the secret_ref of this V1CephFSVolumeSource. Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :return: The secret_ref of this V1CephFSVolumeSource. :rtype: V1LocalObjectReference """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): """ Sets the secret_ref of this V1CephFSVolumeSource. Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :param secret_ref: The secret_ref of this V1CephFSVolumeSource. :type: V1LocalObjectReference """ self._secret_ref = secret_ref @property def read_only(self): """ Gets the read_only of this V1CephFSVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :return: The read_only of this V1CephFSVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1CephFSVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :param read_only: The read_only of this V1CephFSVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_volume_mount.py0000664000567000056710000001013713046233226027341 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1VolumeMount(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'read_only': 'bool', 'mount_path': 'str' } self.attribute_map = { 'name': 'name', 'read_only': 'readOnly', 'mount_path': 'mountPath' } self._name = None self._read_only = None self._mount_path = None @property def name(self): """ Gets the name of this V1VolumeMount. This must match the Name of a Volume. :return: The name of this V1VolumeMount. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1VolumeMount. This must match the Name of a Volume. :param name: The name of this V1VolumeMount. :type: str """ self._name = name @property def read_only(self): """ Gets the read_only of this V1VolumeMount. Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. :return: The read_only of this V1VolumeMount. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1VolumeMount. Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. :param read_only: The read_only of this V1VolumeMount. :type: bool """ self._read_only = read_only @property def mount_path(self): """ Gets the mount_path of this V1VolumeMount. Path within the container at which the volume should be mounted. Must not contain ':'. :return: The mount_path of this V1VolumeMount. :rtype: str """ return self._mount_path @mount_path.setter def mount_path(self, mount_path): """ Sets the mount_path of this V1VolumeMount. Path within the container at which the volume should be mounted. Must not contain ':'. :param mount_path: The mount_path of this V1VolumeMount. :type: str """ self._mount_path = mount_path def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/batch/v1_job_spec.py0000664000567000056710000002304713046233226026400 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1JobSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'parallelism': 'int', 'completions': 'int', 'active_deadline_seconds': 'int', 'selector': 'V1LabelSelector', 'manual_selector': 'bool', 'template': 'V1PodTemplateSpec' } self.attribute_map = { 'parallelism': 'parallelism', 'completions': 'completions', 'active_deadline_seconds': 'activeDeadlineSeconds', 'selector': 'selector', 'manual_selector': 'manualSelector', 'template': 'template' } self._parallelism = None self._completions = None self._active_deadline_seconds = None self._selector = None self._manual_selector = None self._template = None @property def parallelism(self): """ Gets the parallelism of this V1JobSpec. 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://releases.k8s.io/release-1.2/docs/user-guide/jobs.md :return: The parallelism of this V1JobSpec. :rtype: int """ return self._parallelism @parallelism.setter def parallelism(self, parallelism): """ Sets the parallelism of this V1JobSpec. 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://releases.k8s.io/release-1.2/docs/user-guide/jobs.md :param parallelism: The parallelism of this V1JobSpec. :type: int """ self._parallelism = parallelism @property def completions(self): """ Gets the completions of this V1JobSpec. 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://releases.k8s.io/release-1.2/docs/user-guide/jobs.md :return: The completions of this V1JobSpec. :rtype: int """ return self._completions @completions.setter def completions(self, completions): """ Sets the completions of this V1JobSpec. 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://releases.k8s.io/release-1.2/docs/user-guide/jobs.md :param completions: The completions of this V1JobSpec. :type: int """ self._completions = completions @property def active_deadline_seconds(self): """ Gets the active_deadline_seconds of this V1JobSpec. 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 V1JobSpec. :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 V1JobSpec. 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 V1JobSpec. :type: int """ self._active_deadline_seconds = active_deadline_seconds @property def selector(self): """ Gets the selector of this V1JobSpec. Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors :return: The selector of this V1JobSpec. :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): """ Sets the selector of this V1JobSpec. Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors :param selector: The selector of this V1JobSpec. :type: V1LabelSelector """ self._selector = selector @property def manual_selector(self): """ Gets the manual_selector of this V1JobSpec. ManualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: http://releases.k8s.io/release-1.2/docs/design/selector-generation.md :return: The manual_selector of this V1JobSpec. :rtype: bool """ return self._manual_selector @manual_selector.setter def manual_selector(self, manual_selector): """ Sets the manual_selector of this V1JobSpec. ManualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: http://releases.k8s.io/release-1.2/docs/design/selector-generation.md :param manual_selector: The manual_selector of this V1JobSpec. :type: bool """ self._manual_selector = manual_selector @property def template(self): """ Gets the template of this V1JobSpec. Template is the object that describes the pod that will be created when executing a job. More info: http://releases.k8s.io/release-1.2/docs/user-guide/jobs.md :return: The template of this V1JobSpec. :rtype: V1PodTemplateSpec """ return self._template @template.setter def template(self, template): """ Sets the template of this V1JobSpec. Template is the object that describes the pod that will be created when executing a job. More info: http://releases.k8s.io/release-1.2/docs/user-guide/jobs.md :param template: The template of this V1JobSpec. :type: V1PodTemplateSpec """ self._template = template def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_object_reference.py0000664000567000056710000002062713046233226027020 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ObjectReference(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'namespace': 'str', 'name': 'str', 'uid': 'str', 'api_version': 'str', 'resource_version': 'str', 'field_path': 'str' } self.attribute_map = { 'kind': 'kind', 'namespace': 'namespace', 'name': 'name', 'uid': 'uid', 'api_version': 'apiVersion', 'resource_version': 'resourceVersion', 'field_path': 'fieldPath' } self._kind = None self._namespace = None self._name = None self._uid = None self._api_version = None self._resource_version = None self._field_path = None @property def kind(self): """ Gets the kind of this V1ObjectReference. Kind of the referent. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1ObjectReference. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1ObjectReference. Kind of the referent. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1ObjectReference. :type: str """ self._kind = kind @property def namespace(self): """ Gets the namespace of this V1ObjectReference. Namespace of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md :return: The namespace of this V1ObjectReference. :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): """ Sets the namespace of this V1ObjectReference. Namespace of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md :param namespace: The namespace of this V1ObjectReference. :type: str """ self._namespace = namespace @property def name(self): """ Gets the name of this V1ObjectReference. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :return: The name of this V1ObjectReference. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1ObjectReference. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1ObjectReference. :type: str """ self._name = name @property def uid(self): """ Gets the uid of this V1ObjectReference. UID of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#uids :return: The uid of this V1ObjectReference. :rtype: str """ return self._uid @uid.setter def uid(self, uid): """ Sets the uid of this V1ObjectReference. UID of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#uids :param uid: The uid of this V1ObjectReference. :type: str """ self._uid = uid @property def api_version(self): """ Gets the api_version of this V1ObjectReference. API version of the referent. :return: The api_version of this V1ObjectReference. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1ObjectReference. API version of the referent. :param api_version: The api_version of this V1ObjectReference. :type: str """ self._api_version = api_version @property def resource_version(self): """ Gets the resource_version of this V1ObjectReference. Specific resourceVersion to which this reference is made, if any. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency :return: The resource_version of this V1ObjectReference. :rtype: str """ return self._resource_version @resource_version.setter def resource_version(self, resource_version): """ Sets the resource_version of this V1ObjectReference. Specific resourceVersion to which this reference is made, if any. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency :param resource_version: The resource_version of this V1ObjectReference. :type: str """ self._resource_version = resource_version @property def field_path(self): """ Gets the field_path of this V1ObjectReference. If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. :return: The field_path of this V1ObjectReference. :rtype: str """ return self._field_path @field_path.setter def field_path(self, field_path): """ Sets the field_path of this V1ObjectReference. If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. :param field_path: The field_path of this V1ObjectReference. :type: str """ self._field_path = field_path def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_flex_volume_source.py0000664000567000056710000001357513046233226027445 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1FlexVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'driver': 'str', 'fs_type': 'str', 'secret_ref': 'V1LocalObjectReference', 'read_only': 'bool', 'options': 'object' } self.attribute_map = { 'driver': 'driver', 'fs_type': 'fsType', 'secret_ref': 'secretRef', 'read_only': 'readOnly', 'options': 'options' } self._driver = None self._fs_type = None self._secret_ref = None self._read_only = None self._options = None @property def driver(self): """ Gets the driver of this V1FlexVolumeSource. Driver is the name of the driver to use for this volume. :return: The driver of this V1FlexVolumeSource. :rtype: str """ return self._driver @driver.setter def driver(self, driver): """ Sets the driver of this V1FlexVolumeSource. Driver is the name of the driver to use for this volume. :param driver: The driver of this V1FlexVolumeSource. :type: str """ self._driver = driver @property def fs_type(self): """ Gets the fs_type of this V1FlexVolumeSource. Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. :return: The fs_type of this V1FlexVolumeSource. :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): """ Sets the fs_type of this V1FlexVolumeSource. Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. :param fs_type: The fs_type of this V1FlexVolumeSource. :type: str """ self._fs_type = fs_type @property def secret_ref(self): """ Gets the secret_ref of this V1FlexVolumeSource. Optional: SecretRef is reference to the authentication secret for User, default is empty. :return: The secret_ref of this V1FlexVolumeSource. :rtype: V1LocalObjectReference """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): """ Sets the secret_ref of this V1FlexVolumeSource. Optional: SecretRef is reference to the authentication secret for User, default is empty. :param secret_ref: The secret_ref of this V1FlexVolumeSource. :type: V1LocalObjectReference """ self._secret_ref = secret_ref @property def read_only(self): """ Gets the read_only of this V1FlexVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. :return: The read_only of this V1FlexVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1FlexVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. :param read_only: The read_only of this V1FlexVolumeSource. :type: bool """ self._read_only = read_only @property def options(self): """ Gets the options of this V1FlexVolumeSource. Optional: Extra command options if any. :return: The options of this V1FlexVolumeSource. :rtype: object """ return self._options @options.setter def options(self, options): """ Sets the options of this V1FlexVolumeSource. Optional: Extra command options if any. :param options: The options of this V1FlexVolumeSource. :type: object """ self._options = options def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_container_port.py0000664000567000056710000001376713046233226026571 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ContainerPort(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'host_port': 'int', 'container_port': 'int', 'protocol': 'str', 'host_ip': 'str' } self.attribute_map = { 'name': 'name', 'host_port': 'hostPort', 'container_port': 'containerPort', 'protocol': 'protocol', 'host_ip': 'hostIP' } self._name = None self._host_port = None self._container_port = None self._protocol = None self._host_ip = None @property def name(self): """ Gets the name of this V1ContainerPort. If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. :return: The name of this V1ContainerPort. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1ContainerPort. If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. :param name: The name of this V1ContainerPort. :type: str """ self._name = name @property def host_port(self): """ Gets the host_port of this V1ContainerPort. Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. :return: The host_port of this V1ContainerPort. :rtype: int """ return self._host_port @host_port.setter def host_port(self, host_port): """ Sets the host_port of this V1ContainerPort. Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. :param host_port: The host_port of this V1ContainerPort. :type: int """ self._host_port = host_port @property def container_port(self): """ Gets the container_port of this V1ContainerPort. Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. :return: The container_port of this V1ContainerPort. :rtype: int """ return self._container_port @container_port.setter def container_port(self, container_port): """ Sets the container_port of this V1ContainerPort. Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. :param container_port: The container_port of this V1ContainerPort. :type: int """ self._container_port = container_port @property def protocol(self): """ Gets the protocol of this V1ContainerPort. Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". :return: The protocol of this V1ContainerPort. :rtype: str """ return self._protocol @protocol.setter def protocol(self, protocol): """ Sets the protocol of this V1ContainerPort. Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". :param protocol: The protocol of this V1ContainerPort. :type: str """ self._protocol = protocol @property def host_ip(self): """ Gets the host_ip of this V1ContainerPort. What host IP to bind the external port to. :return: The host_ip of this V1ContainerPort. :rtype: str """ return self._host_ip @host_ip.setter def host_ip(self, host_ip): """ Sets the host_ip of this V1ContainerPort. What host IP to bind the external port to. :param host_ip: The host_ip of this V1ContainerPort. :type: str """ self._host_ip = host_ip def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_node.py0000664000567000056710000001473713046233226024466 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Node(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1NodeSpec', 'status': 'V1NodeStatus' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status' } self._kind = None self._api_version = None self._metadata = None self._spec = None self._status = None @property def kind(self): """ Gets the kind of this V1Node. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1Node. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1Node. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1Node. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1Node. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1Node. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1Node. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1Node. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1Node. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1Node. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1Node. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1Node. :type: V1ObjectMeta """ self._metadata = metadata @property def spec(self): """ Gets the spec of this V1Node. Spec defines the behavior of a node. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V1Node. :rtype: V1NodeSpec """ return self._spec @spec.setter def spec(self, spec): """ Sets the spec of this V1Node. Spec defines the behavior of a node. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V1Node. :type: V1NodeSpec """ self._spec = spec @property def status(self): """ Gets the status of this V1Node. Most recently observed status of the node. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The status of this V1Node. :rtype: V1NodeStatus """ return self._status @status.setter def status(self, status): """ Sets the status of this V1Node. Most recently observed status of the node. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param status: The status of this V1Node. :type: V1NodeStatus """ self._status = status def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_replication_controller_status.py0000664000567000056710000001202713046233226031706 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ReplicationControllerStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'replicas': 'int', 'fully_labeled_replicas': 'int', 'observed_generation': 'int' } self.attribute_map = { 'replicas': 'replicas', 'fully_labeled_replicas': 'fullyLabeledReplicas', 'observed_generation': 'observedGeneration' } self._replicas = None self._fully_labeled_replicas = None self._observed_generation = None @property def replicas(self): """ Gets the replicas of this V1ReplicationControllerStatus. Replicas is the most recently oberved number of replicas. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#what-is-a-replication-controller :return: The replicas of this V1ReplicationControllerStatus. :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): """ Sets the replicas of this V1ReplicationControllerStatus. Replicas is the most recently oberved number of replicas. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#what-is-a-replication-controller :param replicas: The replicas of this V1ReplicationControllerStatus. :type: int """ self._replicas = replicas @property def fully_labeled_replicas(self): """ Gets the fully_labeled_replicas of this V1ReplicationControllerStatus. The number of pods that have labels matching the labels of the pod template of the replication controller. :return: The fully_labeled_replicas of this V1ReplicationControllerStatus. :rtype: int """ return self._fully_labeled_replicas @fully_labeled_replicas.setter def fully_labeled_replicas(self, fully_labeled_replicas): """ Sets the fully_labeled_replicas of this V1ReplicationControllerStatus. The number of pods that have labels matching the labels of the pod template of the replication controller. :param fully_labeled_replicas: The fully_labeled_replicas of this V1ReplicationControllerStatus. :type: int """ self._fully_labeled_replicas = fully_labeled_replicas @property def observed_generation(self): """ Gets the observed_generation of this V1ReplicationControllerStatus. ObservedGeneration reflects the generation of the most recently observed replication controller. :return: The observed_generation of this V1ReplicationControllerStatus. :rtype: int """ return self._observed_generation @observed_generation.setter def observed_generation(self, observed_generation): """ Sets the observed_generation of this V1ReplicationControllerStatus. ObservedGeneration reflects the generation of the most recently observed replication controller. :param observed_generation: The observed_generation of this V1ReplicationControllerStatus. :type: int """ self._observed_generation = observed_generation def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_limit_range_spec.py0000664000567000056710000000535213046233226027036 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1LimitRangeSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'limits': 'list[V1LimitRangeItem]' } self.attribute_map = { 'limits': 'limits' } self._limits = None @property def limits(self): """ Gets the limits of this V1LimitRangeSpec. Limits is the list of LimitRangeItem objects that are enforced. :return: The limits of this V1LimitRangeSpec. :rtype: list[V1LimitRangeItem] """ return self._limits @limits.setter def limits(self, limits): """ Sets the limits of this V1LimitRangeSpec. Limits is the list of LimitRangeItem objects that are enforced. :param limits: The limits of this V1LimitRangeSpec. :type: list[V1LimitRangeItem] """ self._limits = limits def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_pod_security_context.py0000664000567000056710000002066413046233226030012 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PodSecurityContext(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'se_linux_options': 'V1SELinuxOptions', 'run_as_user': 'int', 'run_as_non_root': 'bool', 'supplemental_groups': 'list[int]', 'fs_group': 'int' } self.attribute_map = { 'se_linux_options': 'seLinuxOptions', 'run_as_user': 'runAsUser', 'run_as_non_root': 'runAsNonRoot', 'supplemental_groups': 'supplementalGroups', 'fs_group': 'fsGroup' } self._se_linux_options = None self._run_as_user = None self._run_as_non_root = None self._supplemental_groups = None self._fs_group = None @property def se_linux_options(self): """ Gets the se_linux_options of this V1PodSecurityContext. The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. :return: The se_linux_options of this V1PodSecurityContext. :rtype: V1SELinuxOptions """ return self._se_linux_options @se_linux_options.setter def se_linux_options(self, se_linux_options): """ Sets the se_linux_options of this V1PodSecurityContext. The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. :param se_linux_options: The se_linux_options of this V1PodSecurityContext. :type: V1SELinuxOptions """ self._se_linux_options = se_linux_options @property def run_as_user(self): """ Gets the run_as_user of this V1PodSecurityContext. The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. :return: The run_as_user of this V1PodSecurityContext. :rtype: int """ return self._run_as_user @run_as_user.setter def run_as_user(self, run_as_user): """ Sets the run_as_user of this V1PodSecurityContext. The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. :param run_as_user: The run_as_user of this V1PodSecurityContext. :type: int """ self._run_as_user = run_as_user @property def run_as_non_root(self): """ Gets the run_as_non_root of this V1PodSecurityContext. Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :return: The run_as_non_root of this V1PodSecurityContext. :rtype: bool """ return self._run_as_non_root @run_as_non_root.setter def run_as_non_root(self, run_as_non_root): """ Sets the run_as_non_root of this V1PodSecurityContext. Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :param run_as_non_root: The run_as_non_root of this V1PodSecurityContext. :type: bool """ self._run_as_non_root = run_as_non_root @property def supplemental_groups(self): """ Gets the supplemental_groups of this V1PodSecurityContext. A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. :return: The supplemental_groups of this V1PodSecurityContext. :rtype: list[int] """ return self._supplemental_groups @supplemental_groups.setter def supplemental_groups(self, supplemental_groups): """ Sets the supplemental_groups of this V1PodSecurityContext. A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. :param supplemental_groups: The supplemental_groups of this V1PodSecurityContext. :type: list[int] """ self._supplemental_groups = supplemental_groups @property def fs_group(self): """ Gets the fs_group of this V1PodSecurityContext. A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw :return: The fs_group of this V1PodSecurityContext. :rtype: int """ return self._fs_group @fs_group.setter def fs_group(self, fs_group): """ Sets the fs_group of this V1PodSecurityContext. A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw :param fs_group: The fs_group of this V1PodSecurityContext. :type: int """ self._fs_group = fs_group def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_pod_template_list.py0000664000567000056710000001324613046233226027243 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PodTemplateList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'items': 'list[V1PodTemplate]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'items': 'items' } self._kind = None self._api_version = None self._metadata = None self._items = None @property def kind(self): """ Gets the kind of this V1PodTemplateList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1PodTemplateList. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1PodTemplateList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1PodTemplateList. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1PodTemplateList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1PodTemplateList. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1PodTemplateList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1PodTemplateList. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1PodTemplateList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1PodTemplateList. :rtype: UnversionedListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1PodTemplateList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1PodTemplateList. :type: UnversionedListMeta """ self._metadata = metadata @property def items(self): """ Gets the items of this V1PodTemplateList. List of pod templates :return: The items of this V1PodTemplateList. :rtype: list[V1PodTemplate] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1PodTemplateList. List of pod templates :param items: The items of this V1PodTemplateList. :type: list[V1PodTemplate] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_endpoint_port.py0000664000567000056710000000777113046233226026425 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1EndpointPort(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'port': 'int', 'protocol': 'str' } self.attribute_map = { 'name': 'name', 'port': 'port', 'protocol': 'protocol' } self._name = None self._port = None self._protocol = None @property def name(self): """ Gets the name of this V1EndpointPort. The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined. :return: The name of this V1EndpointPort. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1EndpointPort. The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined. :param name: The name of this V1EndpointPort. :type: str """ self._name = name @property def port(self): """ Gets the port of this V1EndpointPort. The port number of the endpoint. :return: The port of this V1EndpointPort. :rtype: int """ return self._port @port.setter def port(self, port): """ Sets the port of this V1EndpointPort. The port number of the endpoint. :param port: The port of this V1EndpointPort. :type: int """ self._port = port @property def protocol(self): """ Gets the protocol of this V1EndpointPort. The IP protocol for this port. Must be UDP or TCP. Default is TCP. :return: The protocol of this V1EndpointPort. :rtype: str """ return self._protocol @protocol.setter def protocol(self, protocol): """ Sets the protocol of this V1EndpointPort. The IP protocol for this port. Must be UDP or TCP. Default is TCP. :param protocol: The protocol of this V1EndpointPort. :type: str """ self._protocol = protocol def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_exec_action.py0000664000567000056710000000652713046233226026020 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ExecAction(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'command': 'list[str]' } self.attribute_map = { 'command': 'command' } self._command = None @property def command(self): """ Gets the command of this V1ExecAction. Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. :return: The command of this V1ExecAction. :rtype: list[str] """ return self._command @command.setter def command(self, command): """ Sets the command of this V1ExecAction. Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. :param command: The command of this V1ExecAction. :type: list[str] """ self._command = command def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_container_state_terminated.py0000664000567000056710000001614513046233226031132 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ContainerStateTerminated(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'exit_code': 'int', 'signal': 'int', 'reason': 'str', 'message': 'str', 'started_at': 'str', 'finished_at': 'str', 'container_id': 'str' } self.attribute_map = { 'exit_code': 'exitCode', 'signal': 'signal', 'reason': 'reason', 'message': 'message', 'started_at': 'startedAt', 'finished_at': 'finishedAt', 'container_id': 'containerID' } self._exit_code = None self._signal = None self._reason = None self._message = None self._started_at = None self._finished_at = None self._container_id = None @property def exit_code(self): """ Gets the exit_code of this V1ContainerStateTerminated. Exit status from the last termination of the container :return: The exit_code of this V1ContainerStateTerminated. :rtype: int """ return self._exit_code @exit_code.setter def exit_code(self, exit_code): """ Sets the exit_code of this V1ContainerStateTerminated. Exit status from the last termination of the container :param exit_code: The exit_code of this V1ContainerStateTerminated. :type: int """ self._exit_code = exit_code @property def signal(self): """ Gets the signal of this V1ContainerStateTerminated. Signal from the last termination of the container :return: The signal of this V1ContainerStateTerminated. :rtype: int """ return self._signal @signal.setter def signal(self, signal): """ Sets the signal of this V1ContainerStateTerminated. Signal from the last termination of the container :param signal: The signal of this V1ContainerStateTerminated. :type: int """ self._signal = signal @property def reason(self): """ Gets the reason of this V1ContainerStateTerminated. (brief) reason from the last termination of the container :return: The reason of this V1ContainerStateTerminated. :rtype: str """ return self._reason @reason.setter def reason(self, reason): """ Sets the reason of this V1ContainerStateTerminated. (brief) reason from the last termination of the container :param reason: The reason of this V1ContainerStateTerminated. :type: str """ self._reason = reason @property def message(self): """ Gets the message of this V1ContainerStateTerminated. Message regarding the last termination of the container :return: The message of this V1ContainerStateTerminated. :rtype: str """ return self._message @message.setter def message(self, message): """ Sets the message of this V1ContainerStateTerminated. Message regarding the last termination of the container :param message: The message of this V1ContainerStateTerminated. :type: str """ self._message = message @property def started_at(self): """ Gets the started_at of this V1ContainerStateTerminated. Time at which previous execution of the container started :return: The started_at of this V1ContainerStateTerminated. :rtype: str """ return self._started_at @started_at.setter def started_at(self, started_at): """ Sets the started_at of this V1ContainerStateTerminated. Time at which previous execution of the container started :param started_at: The started_at of this V1ContainerStateTerminated. :type: str """ self._started_at = started_at @property def finished_at(self): """ Gets the finished_at of this V1ContainerStateTerminated. Time at which the container last terminated :return: The finished_at of this V1ContainerStateTerminated. :rtype: str """ return self._finished_at @finished_at.setter def finished_at(self, finished_at): """ Sets the finished_at of this V1ContainerStateTerminated. Time at which the container last terminated :param finished_at: The finished_at of this V1ContainerStateTerminated. :type: str """ self._finished_at = finished_at @property def container_id(self): """ Gets the container_id of this V1ContainerStateTerminated. Container's ID in the format 'docker://' :return: The container_id of this V1ContainerStateTerminated. :rtype: str """ return self._container_id @container_id.setter def container_id(self, container_id): """ Sets the container_id of this V1ContainerStateTerminated. Container's ID in the format 'docker://' :param container_id: The container_id of this V1ContainerStateTerminated. :type: str """ self._container_id = container_id def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_capability.py0000664000567000056710000000404013046233226025644 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Capability(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { } self.attribute_map = { } def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_fc_volume_source.py0000664000567000056710000001176513046233226027076 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1FCVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'target_ww_ns': 'list[str]', 'lun': 'int', 'fs_type': 'str', 'read_only': 'bool' } self.attribute_map = { 'target_ww_ns': 'targetWWNs', 'lun': 'lun', 'fs_type': 'fsType', 'read_only': 'readOnly' } self._target_ww_ns = None self._lun = None self._fs_type = None self._read_only = None @property def target_ww_ns(self): """ Gets the target_ww_ns of this V1FCVolumeSource. Required: FC target world wide names (WWNs) :return: The target_ww_ns of this V1FCVolumeSource. :rtype: list[str] """ return self._target_ww_ns @target_ww_ns.setter def target_ww_ns(self, target_ww_ns): """ Sets the target_ww_ns of this V1FCVolumeSource. Required: FC target world wide names (WWNs) :param target_ww_ns: The target_ww_ns of this V1FCVolumeSource. :type: list[str] """ self._target_ww_ns = target_ww_ns @property def lun(self): """ Gets the lun of this V1FCVolumeSource. Required: FC target lun number :return: The lun of this V1FCVolumeSource. :rtype: int """ return self._lun @lun.setter def lun(self, lun): """ Sets the lun of this V1FCVolumeSource. Required: FC target lun number :param lun: The lun of this V1FCVolumeSource. :type: int """ self._lun = lun @property def fs_type(self): """ Gets the fs_type of this V1FCVolumeSource. Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. :return: The fs_type of this V1FCVolumeSource. :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): """ Sets the fs_type of this V1FCVolumeSource. Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. :param fs_type: The fs_type of this V1FCVolumeSource. :type: str """ self._fs_type = fs_type @property def read_only(self): """ Gets the read_only of this V1FCVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. :return: The read_only of this V1FCVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1FCVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. :param read_only: The read_only of this V1FCVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_service_spec.py0000664000567000056710000002776113046233226026214 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ServiceSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'ports': 'list[V1ServicePort]', 'selector': 'object', 'cluster_ip': 'str', 'type': 'str', 'external_i_ps': 'list[str]', 'deprecated_public_i_ps': 'list[str]', 'session_affinity': 'str', 'load_balancer_ip': 'str' } self.attribute_map = { 'ports': 'ports', 'selector': 'selector', 'cluster_ip': 'clusterIP', 'type': 'type', 'external_i_ps': 'externalIPs', 'deprecated_public_i_ps': 'deprecatedPublicIPs', 'session_affinity': 'sessionAffinity', 'load_balancer_ip': 'loadBalancerIP' } self._ports = None self._selector = None self._cluster_ip = None self._type = None self._external_i_ps = None self._deprecated_public_i_ps = None self._session_affinity = None self._load_balancer_ip = None @property def ports(self): """ Gets the ports of this V1ServiceSpec. The list of ports that are exposed by this service. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#virtual-ips-and-service-proxies :return: The ports of this V1ServiceSpec. :rtype: list[V1ServicePort] """ return self._ports @ports.setter def ports(self, ports): """ Sets the ports of this V1ServiceSpec. The list of ports that are exposed by this service. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#virtual-ips-and-service-proxies :param ports: The ports of this V1ServiceSpec. :type: list[V1ServicePort] """ self._ports = ports @property def selector(self): """ Gets the selector of this V1ServiceSpec. This service will route traffic to pods having labels matching this selector. Label keys and values that must match in order to receive traffic for this service. If empty, all pods are selected, if not specified, endpoints must be manually specified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#overview :return: The selector of this V1ServiceSpec. :rtype: object """ return self._selector @selector.setter def selector(self, selector): """ Sets the selector of this V1ServiceSpec. This service will route traffic to pods having labels matching this selector. Label keys and values that must match in order to receive traffic for this service. If empty, all pods are selected, if not specified, endpoints must be manually specified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#overview :param selector: The selector of this V1ServiceSpec. :type: object """ self._selector = selector @property def cluster_ip(self): """ Gets the cluster_ip of this V1ServiceSpec. ClusterIP is usually assigned by the master and is the IP address of the service. If specified, it will be allocated to the service if it is unused or else creation of the service will fail. Valid values are None, empty string (\"\"), or a valid IP address. 'None' can be specified for a headless service when proxying is not required. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#virtual-ips-and-service-proxies :return: The cluster_ip of this V1ServiceSpec. :rtype: str """ return self._cluster_ip @cluster_ip.setter def cluster_ip(self, cluster_ip): """ Sets the cluster_ip of this V1ServiceSpec. ClusterIP is usually assigned by the master and is the IP address of the service. If specified, it will be allocated to the service if it is unused or else creation of the service will fail. Valid values are None, empty string (\"\"), or a valid IP address. 'None' can be specified for a headless service when proxying is not required. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#virtual-ips-and-service-proxies :param cluster_ip: The cluster_ip of this V1ServiceSpec. :type: str """ self._cluster_ip = cluster_ip @property def type(self): """ Gets the type of this V1ServiceSpec. Type of exposed service. Must be ClusterIP, NodePort, or LoadBalancer. Defaults to ClusterIP. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#external-services :return: The type of this V1ServiceSpec. :rtype: str """ return self._type @type.setter def type(self, type): """ Sets the type of this V1ServiceSpec. Type of exposed service. Must be ClusterIP, NodePort, or LoadBalancer. Defaults to ClusterIP. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#external-services :param type: The type of this V1ServiceSpec. :type: str """ self._type = type @property def external_i_ps(self): """ Gets the external_i_ps of this V1ServiceSpec. externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. A previous form of this functionality exists as the deprecatedPublicIPs field. When using this field, callers should also clear the deprecatedPublicIPs field. :return: The external_i_ps of this V1ServiceSpec. :rtype: list[str] """ return self._external_i_ps @external_i_ps.setter def external_i_ps(self, external_i_ps): """ Sets the external_i_ps of this V1ServiceSpec. externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. A previous form of this functionality exists as the deprecatedPublicIPs field. When using this field, callers should also clear the deprecatedPublicIPs field. :param external_i_ps: The external_i_ps of this V1ServiceSpec. :type: list[str] """ self._external_i_ps = external_i_ps @property def deprecated_public_i_ps(self): """ Gets the deprecated_public_i_ps of this V1ServiceSpec. 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. :return: The deprecated_public_i_ps of this V1ServiceSpec. :rtype: list[str] """ return self._deprecated_public_i_ps @deprecated_public_i_ps.setter def deprecated_public_i_ps(self, deprecated_public_i_ps): """ Sets the deprecated_public_i_ps of this V1ServiceSpec. 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. :param deprecated_public_i_ps: The deprecated_public_i_ps of this V1ServiceSpec. :type: list[str] """ self._deprecated_public_i_ps = deprecated_public_i_ps @property def session_affinity(self): """ Gets the session_affinity of this V1ServiceSpec. Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#virtual-ips-and-service-proxies :return: The session_affinity of this V1ServiceSpec. :rtype: str """ return self._session_affinity @session_affinity.setter def session_affinity(self, session_affinity): """ Sets the session_affinity of this V1ServiceSpec. Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#virtual-ips-and-service-proxies :param session_affinity: The session_affinity of this V1ServiceSpec. :type: str """ self._session_affinity = session_affinity @property def load_balancer_ip(self): """ Gets the load_balancer_ip of this V1ServiceSpec. Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. :return: The load_balancer_ip of this V1ServiceSpec. :rtype: str """ return self._load_balancer_ip @load_balancer_ip.setter def load_balancer_ip(self, load_balancer_ip): """ Sets the load_balancer_ip of this V1ServiceSpec. Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. :param load_balancer_ip: The load_balancer_ip of this V1ServiceSpec. :type: str """ self._load_balancer_ip = load_balancer_ip def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_scale_spec.py0000664000567000056710000000523613046233226025634 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ScaleSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'replicas': 'int' } self.attribute_map = { 'replicas': 'replicas' } self._replicas = None @property def replicas(self): """ Gets the replicas of this V1ScaleSpec. desired number of instances for the scaled object. :return: The replicas of this V1ScaleSpec. :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): """ Sets the replicas of this V1ScaleSpec. desired number of instances for the scaled object. :param replicas: The replicas of this V1ScaleSpec. :type: int """ self._replicas = replicas def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_pod_template_spec.py0000664000567000056710000000721613046233226027222 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PodTemplateSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'metadata': 'V1ObjectMeta', 'spec': 'V1PodSpec' } self.attribute_map = { 'metadata': 'metadata', 'spec': 'spec' } self._metadata = None self._spec = None @property def metadata(self): """ Gets the metadata of this V1PodTemplateSpec. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1PodTemplateSpec. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1PodTemplateSpec. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1PodTemplateSpec. :type: V1ObjectMeta """ self._metadata = metadata @property def spec(self): """ Gets the spec of this V1PodTemplateSpec. Specification of the desired behavior of the pod. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V1PodTemplateSpec. :rtype: V1PodSpec """ return self._spec @spec.setter def spec(self, spec): """ Sets the spec of this V1PodTemplateSpec. Specification of the desired behavior of the pod. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V1PodTemplateSpec. :type: V1PodSpec """ self._spec = spec def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_component_status_list.py0000664000567000056710000001341413046233226030170 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ComponentStatusList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'items': 'list[V1ComponentStatus]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'items': 'items' } self._kind = None self._api_version = None self._metadata = None self._items = None @property def kind(self): """ Gets the kind of this V1ComponentStatusList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1ComponentStatusList. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1ComponentStatusList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1ComponentStatusList. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1ComponentStatusList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1ComponentStatusList. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1ComponentStatusList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1ComponentStatusList. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1ComponentStatusList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1ComponentStatusList. :rtype: UnversionedListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1ComponentStatusList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1ComponentStatusList. :type: UnversionedListMeta """ self._metadata = metadata @property def items(self): """ Gets the items of this V1ComponentStatusList. List of ComponentStatus objects. :return: The items of this V1ComponentStatusList. :rtype: list[V1ComponentStatus] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1ComponentStatusList. List of ComponentStatus objects. :param items: The items of this V1ComponentStatusList. :type: list[V1ComponentStatus] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_secret_volume_source.py0000664000567000056710000000563213046233226027767 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1SecretVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'secret_name': 'str' } self.attribute_map = { 'secret_name': 'secretName' } self._secret_name = None @property def secret_name(self): """ Gets the secret_name of this V1SecretVolumeSource. Name of the secret in the pod's namespace to use. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets :return: The secret_name of this V1SecretVolumeSource. :rtype: str """ return self._secret_name @secret_name.setter def secret_name(self, secret_name): """ Sets the secret_name of this V1SecretVolumeSource. Name of the secret in the pod's namespace to use. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets :param secret_name: The secret_name of this V1SecretVolumeSource. :type: str """ self._secret_name = secret_name def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_node_daemon_endpoints.py0000664000567000056710000000554013046233226030064 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1NodeDaemonEndpoints(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kubelet_endpoint': 'V1DaemonEndpoint' } self.attribute_map = { 'kubelet_endpoint': 'kubeletEndpoint' } self._kubelet_endpoint = None @property def kubelet_endpoint(self): """ Gets the kubelet_endpoint of this V1NodeDaemonEndpoints. Endpoint on which Kubelet is listening. :return: The kubelet_endpoint of this V1NodeDaemonEndpoints. :rtype: V1DaemonEndpoint """ return self._kubelet_endpoint @kubelet_endpoint.setter def kubelet_endpoint(self, kubelet_endpoint): """ Sets the kubelet_endpoint of this V1NodeDaemonEndpoints. Endpoint on which Kubelet is listening. :param kubelet_endpoint: The kubelet_endpoint of this V1NodeDaemonEndpoints. :type: V1DaemonEndpoint """ self._kubelet_endpoint = kubelet_endpoint def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_container_state.py0000664000567000056710000001016213046233226026707 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ContainerState(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'waiting': 'V1ContainerStateWaiting', 'running': 'V1ContainerStateRunning', 'terminated': 'V1ContainerStateTerminated' } self.attribute_map = { 'waiting': 'waiting', 'running': 'running', 'terminated': 'terminated' } self._waiting = None self._running = None self._terminated = None @property def waiting(self): """ Gets the waiting of this V1ContainerState. Details about a waiting container :return: The waiting of this V1ContainerState. :rtype: V1ContainerStateWaiting """ return self._waiting @waiting.setter def waiting(self, waiting): """ Sets the waiting of this V1ContainerState. Details about a waiting container :param waiting: The waiting of this V1ContainerState. :type: V1ContainerStateWaiting """ self._waiting = waiting @property def running(self): """ Gets the running of this V1ContainerState. Details about a running container :return: The running of this V1ContainerState. :rtype: V1ContainerStateRunning """ return self._running @running.setter def running(self, running): """ Sets the running of this V1ContainerState. Details about a running container :param running: The running of this V1ContainerState. :type: V1ContainerStateRunning """ self._running = running @property def terminated(self): """ Gets the terminated of this V1ContainerState. Details about a terminated container :return: The terminated of this V1ContainerState. :rtype: V1ContainerStateTerminated """ return self._terminated @terminated.setter def terminated(self, terminated): """ Sets the terminated of this V1ContainerState. Details about a terminated container :param terminated: The terminated of this V1ContainerState. :type: V1ContainerStateTerminated """ self._terminated = terminated def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_secret_list.py0000664000567000056710000001335613046233226026055 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1SecretList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'items': 'list[V1Secret]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'items': 'items' } self._kind = None self._api_version = None self._metadata = None self._items = None @property def kind(self): """ Gets the kind of this V1SecretList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1SecretList. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1SecretList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1SecretList. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1SecretList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1SecretList. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1SecretList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1SecretList. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1SecretList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1SecretList. :rtype: UnversionedListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1SecretList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1SecretList. :type: UnversionedListMeta """ self._metadata = metadata @property def items(self): """ Gets the items of this V1SecretList. Items is a list of secret objects. More info: http://releases.k8s.io/release-1.2/docs/user-guide/secrets.md :return: The items of this V1SecretList. :rtype: list[V1Secret] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1SecretList. Items is a list of secret objects. More info: http://releases.k8s.io/release-1.2/docs/user-guide/secrets.md :param items: The items of this V1SecretList. :type: list[V1Secret] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_limit_range_list.py0000664000567000056710000001355213046233226027060 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1LimitRangeList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'items': 'list[V1LimitRange]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'items': 'items' } self._kind = None self._api_version = None self._metadata = None self._items = None @property def kind(self): """ Gets the kind of this V1LimitRangeList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1LimitRangeList. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1LimitRangeList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1LimitRangeList. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1LimitRangeList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1LimitRangeList. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1LimitRangeList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1LimitRangeList. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1LimitRangeList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1LimitRangeList. :rtype: UnversionedListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1LimitRangeList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1LimitRangeList. :type: UnversionedListMeta """ self._metadata = metadata @property def items(self): """ Gets the items of this V1LimitRangeList. Items is a list of LimitRange objects. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_limit_range.md :return: The items of this V1LimitRangeList. :rtype: list[V1LimitRange] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1LimitRangeList. Items is a list of LimitRange objects. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_limit_range.md :param items: The items of this V1LimitRangeList. :type: list[V1LimitRange] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_capabilities.py0000664000567000056710000000624213046233226026162 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Capabilities(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'add': 'list[V1Capability]', 'drop': 'list[V1Capability]' } self.attribute_map = { 'add': 'add', 'drop': 'drop' } self._add = None self._drop = None @property def add(self): """ Gets the add of this V1Capabilities. Added capabilities :return: The add of this V1Capabilities. :rtype: list[V1Capability] """ return self._add @add.setter def add(self, add): """ Sets the add of this V1Capabilities. Added capabilities :param add: The add of this V1Capabilities. :type: list[V1Capability] """ self._add = add @property def drop(self): """ Gets the drop of this V1Capabilities. Removed capabilities :return: The drop of this V1Capabilities. :rtype: list[V1Capability] """ return self._drop @drop.setter def drop(self, drop): """ Sets the drop of this V1Capabilities. Removed capabilities :param drop: The drop of this V1Capabilities. :type: list[V1Capability] """ self._drop = drop def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_secret.py0000664000567000056710000001513613046233226025020 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Secret(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'data': 'object', 'type': 'str' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'data': 'data', 'type': 'type' } self._kind = None self._api_version = None self._metadata = None self._data = None self._type = None @property def kind(self): """ Gets the kind of this V1Secret. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1Secret. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1Secret. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1Secret. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1Secret. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1Secret. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1Secret. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1Secret. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1Secret. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1Secret. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1Secret. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1Secret. :type: V1ObjectMeta """ self._metadata = metadata @property def data(self): """ Gets the data of this V1Secret. 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 :return: The data of this V1Secret. :rtype: object """ return self._data @data.setter def data(self, data): """ Sets the data of this V1Secret. 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 :param data: The data of this V1Secret. :type: object """ self._data = data @property def type(self): """ Gets the type of this V1Secret. Used to facilitate programmatic handling of secret data. :return: The type of this V1Secret. :rtype: str """ return self._type @type.setter def type(self, type): """ Sets the type of this V1Secret. Used to facilitate programmatic handling of secret data. :param type: The type of this V1Secret. :type: str """ self._type = type def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_probe.py0000664000567000056710000002164313046233226024642 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Probe(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { '_exec': 'V1ExecAction', 'http_get': 'V1HTTPGetAction', 'tcp_socket': 'V1TCPSocketAction', 'initial_delay_seconds': 'int', 'timeout_seconds': 'int', 'period_seconds': 'int', 'success_threshold': 'int', 'failure_threshold': 'int' } self.attribute_map = { '_exec': 'exec', 'http_get': 'httpGet', 'tcp_socket': 'tcpSocket', 'initial_delay_seconds': 'initialDelaySeconds', 'timeout_seconds': 'timeoutSeconds', 'period_seconds': 'periodSeconds', 'success_threshold': 'successThreshold', 'failure_threshold': 'failureThreshold' } self.__exec = None self._http_get = None self._tcp_socket = None self._initial_delay_seconds = None self._timeout_seconds = None self._period_seconds = None self._success_threshold = None self._failure_threshold = None @property def _exec(self): """ Gets the _exec of this V1Probe. One and only one of the following should be specified. Exec specifies the action to take. :return: The _exec of this V1Probe. :rtype: V1ExecAction """ return self.__exec @_exec.setter def _exec(self, _exec): """ Sets the _exec of this V1Probe. One and only one of the following should be specified. Exec specifies the action to take. :param _exec: The _exec of this V1Probe. :type: V1ExecAction """ self.__exec = _exec @property def http_get(self): """ Gets the http_get of this V1Probe. HTTPGet specifies the http request to perform. :return: The http_get of this V1Probe. :rtype: V1HTTPGetAction """ return self._http_get @http_get.setter def http_get(self, http_get): """ Sets the http_get of this V1Probe. HTTPGet specifies the http request to perform. :param http_get: The http_get of this V1Probe. :type: V1HTTPGetAction """ self._http_get = http_get @property def tcp_socket(self): """ Gets the tcp_socket of this V1Probe. TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported :return: The tcp_socket of this V1Probe. :rtype: V1TCPSocketAction """ return self._tcp_socket @tcp_socket.setter def tcp_socket(self, tcp_socket): """ Sets the tcp_socket of this V1Probe. TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported :param tcp_socket: The tcp_socket of this V1Probe. :type: V1TCPSocketAction """ self._tcp_socket = tcp_socket @property def initial_delay_seconds(self): """ Gets the initial_delay_seconds of this V1Probe. Number of seconds after the container has started before liveness probes are initiated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :return: The initial_delay_seconds of this V1Probe. :rtype: int """ return self._initial_delay_seconds @initial_delay_seconds.setter def initial_delay_seconds(self, initial_delay_seconds): """ Sets the initial_delay_seconds of this V1Probe. Number of seconds after the container has started before liveness probes are initiated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :param initial_delay_seconds: The initial_delay_seconds of this V1Probe. :type: int """ self._initial_delay_seconds = initial_delay_seconds @property def timeout_seconds(self): """ Gets the timeout_seconds of this V1Probe. Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :return: The timeout_seconds of this V1Probe. :rtype: int """ return self._timeout_seconds @timeout_seconds.setter def timeout_seconds(self, timeout_seconds): """ Sets the timeout_seconds of this V1Probe. Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :param timeout_seconds: The timeout_seconds of this V1Probe. :type: int """ self._timeout_seconds = timeout_seconds @property def period_seconds(self): """ Gets the period_seconds of this V1Probe. How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. :return: The period_seconds of this V1Probe. :rtype: int """ return self._period_seconds @period_seconds.setter def period_seconds(self, period_seconds): """ Sets the period_seconds of this V1Probe. How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. :param period_seconds: The period_seconds of this V1Probe. :type: int """ self._period_seconds = period_seconds @property def success_threshold(self): """ Gets the success_threshold of this V1Probe. Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. :return: The success_threshold of this V1Probe. :rtype: int """ return self._success_threshold @success_threshold.setter def success_threshold(self, success_threshold): """ Sets the success_threshold of this V1Probe. Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. :param success_threshold: The success_threshold of this V1Probe. :type: int """ self._success_threshold = success_threshold @property def failure_threshold(self): """ Gets the failure_threshold of this V1Probe. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. :return: The failure_threshold of this V1Probe. :rtype: int """ return self._failure_threshold @failure_threshold.setter def failure_threshold(self, failure_threshold): """ Sets the failure_threshold of this V1Probe. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. :param failure_threshold: The failure_threshold of this V1Probe. :type: int """ self._failure_threshold = failure_threshold def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_resource_quota_spec.py0000664000567000056710000000743513046233226027610 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ResourceQuotaSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'hard': 'object', 'scopes': 'list[V1ResourceQuotaScope]' } self.attribute_map = { 'hard': 'hard', 'scopes': 'scopes' } self._hard = None self._scopes = None @property def hard(self): """ Gets the hard of this V1ResourceQuotaSpec. Hard is the set of desired hard limits for each named resource. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota :return: The hard of this V1ResourceQuotaSpec. :rtype: object """ return self._hard @hard.setter def hard(self, hard): """ Sets the hard of this V1ResourceQuotaSpec. Hard is the set of desired hard limits for each named resource. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota :param hard: The hard of this V1ResourceQuotaSpec. :type: object """ self._hard = hard @property def scopes(self): """ Gets the scopes of this V1ResourceQuotaSpec. A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. :return: The scopes of this V1ResourceQuotaSpec. :rtype: list[V1ResourceQuotaScope] """ return self._scopes @scopes.setter def scopes(self, scopes): """ Sets the scopes of this V1ResourceQuotaSpec. A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. :param scopes: The scopes of this V1ResourceQuotaSpec. :type: list[V1ResourceQuotaScope] """ self._scopes = scopes def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_azure_file_volume_source.py0000664000567000056710000001037213046233226030624 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1AzureFileVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'secret_name': 'str', 'share_name': 'str', 'read_only': 'bool' } self.attribute_map = { 'secret_name': 'secretName', 'share_name': 'shareName', 'read_only': 'readOnly' } self._secret_name = None self._share_name = None self._read_only = None @property def secret_name(self): """ Gets the secret_name of this V1AzureFileVolumeSource. the name of secret that contains Azure Storage Account Name and Key :return: The secret_name of this V1AzureFileVolumeSource. :rtype: str """ return self._secret_name @secret_name.setter def secret_name(self, secret_name): """ Sets the secret_name of this V1AzureFileVolumeSource. the name of secret that contains Azure Storage Account Name and Key :param secret_name: The secret_name of this V1AzureFileVolumeSource. :type: str """ self._secret_name = secret_name @property def share_name(self): """ Gets the share_name of this V1AzureFileVolumeSource. Share Name :return: The share_name of this V1AzureFileVolumeSource. :rtype: str """ return self._share_name @share_name.setter def share_name(self, share_name): """ Sets the share_name of this V1AzureFileVolumeSource. Share Name :param share_name: The share_name of this V1AzureFileVolumeSource. :type: str """ self._share_name = share_name @property def read_only(self): """ Gets the read_only of this V1AzureFileVolumeSource. Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. :return: The read_only of this V1AzureFileVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1AzureFileVolumeSource. Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. :param read_only: The read_only of this V1AzureFileVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/json_watch_event.py0000664000567000056710000000662213046233226026465 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class JsonWatchEvent(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'type': 'str', 'object': 'str' } self.attribute_map = { 'type': 'type', 'object': 'object' } self._type = None self._object = None @property def type(self): """ Gets the type of this JsonWatchEvent. the type of watch event; may be ADDED, MODIFIED, DELETED, or ERROR :return: The type of this JsonWatchEvent. :rtype: str """ return self._type @type.setter def type(self, type): """ Sets the type of this JsonWatchEvent. the type of watch event; may be ADDED, MODIFIED, DELETED, or ERROR :param type: The type of this JsonWatchEvent. :type: str """ self._type = type @property def object(self): """ Gets the object of this JsonWatchEvent. the object being watched; will match the type of the resource endpoint or be a Status object if the type is ERROR :return: The object of this JsonWatchEvent. :rtype: str """ return self._object @object.setter def object(self, object): """ Sets the object of this JsonWatchEvent. the object being watched; will match the type of the resource endpoint or be a Status object if the type is ERROR :param object: The object of this JsonWatchEvent. :type: str """ self._object = object def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/unversioned_status_details.py0000664000567000056710000001450613046233226030576 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class UnversionedStatusDetails(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'group': 'str', 'kind': 'str', 'causes': 'list[UnversionedStatusCause]', 'retry_after_seconds': 'int' } self.attribute_map = { 'name': 'name', 'group': 'group', 'kind': 'kind', 'causes': 'causes', 'retry_after_seconds': 'retryAfterSeconds' } self._name = None self._group = None self._kind = None self._causes = None self._retry_after_seconds = None @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 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/release-1.2/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/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this UnversionedStatusDetails. :type: str """ self._kind = kind @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 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): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_component_status.py0000664000567000056710000001343013046233226027133 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ComponentStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'conditions': 'list[V1ComponentCondition]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'conditions': 'conditions' } self._kind = None self._api_version = None self._metadata = None self._conditions = None @property def kind(self): """ Gets the kind of this V1ComponentStatus. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1ComponentStatus. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1ComponentStatus. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1ComponentStatus. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1ComponentStatus. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1ComponentStatus. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1ComponentStatus. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1ComponentStatus. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1ComponentStatus. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1ComponentStatus. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1ComponentStatus. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1ComponentStatus. :type: V1ObjectMeta """ self._metadata = metadata @property def conditions(self): """ Gets the conditions of this V1ComponentStatus. List of component conditions observed :return: The conditions of this V1ComponentStatus. :rtype: list[V1ComponentCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): """ Sets the conditions of this V1ComponentStatus. List of component conditions observed :param conditions: The conditions of this V1ComponentStatus. :type: list[V1ComponentCondition] """ self._conditions = conditions def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_persistent_volume_list.py0000664000567000056710000001367613046233226030364 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PersistentVolumeList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'items': 'list[V1PersistentVolume]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'items': 'items' } self._kind = None self._api_version = None self._metadata = None self._items = None @property def kind(self): """ Gets the kind of this V1PersistentVolumeList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1PersistentVolumeList. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1PersistentVolumeList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1PersistentVolumeList. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1PersistentVolumeList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1PersistentVolumeList. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1PersistentVolumeList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1PersistentVolumeList. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1PersistentVolumeList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1PersistentVolumeList. :rtype: UnversionedListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1PersistentVolumeList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1PersistentVolumeList. :type: UnversionedListMeta """ self._metadata = metadata @property def items(self): """ Gets the items of this V1PersistentVolumeList. List of persistent volumes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md :return: The items of this V1PersistentVolumeList. :rtype: list[V1PersistentVolume] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1PersistentVolumeList. List of persistent volumes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md :param items: The items of this V1PersistentVolumeList. :type: list[V1PersistentVolume] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_flocker_volume_source.py0000664000567000056710000000556113046233226030130 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1FlockerVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'dataset_name': 'str' } self.attribute_map = { 'dataset_name': 'datasetName' } self._dataset_name = None @property def dataset_name(self): """ Gets the dataset_name of this V1FlockerVolumeSource. Required: the volume name. This is going to be store on metadata -> name on the payload for Flocker :return: The dataset_name of this V1FlockerVolumeSource. :rtype: str """ return self._dataset_name @dataset_name.setter def dataset_name(self, dataset_name): """ Sets the dataset_name of this V1FlockerVolumeSource. Required: the volume name. This is going to be store on metadata -> name on the payload for Flocker :param dataset_name: The dataset_name of this V1FlockerVolumeSource. :type: str """ self._dataset_name = dataset_name def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_downward_api_volume_file.py0000664000567000056710000000746213046233226030602 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1DownwardAPIVolumeFile(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'path': 'str', 'field_ref': 'V1ObjectFieldSelector' } self.attribute_map = { 'path': 'path', 'field_ref': 'fieldRef' } self._path = None self._field_ref = None @property def path(self): """ Gets the path of this V1DownwardAPIVolumeFile. Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' :return: The path of this V1DownwardAPIVolumeFile. :rtype: str """ return self._path @path.setter def path(self, path): """ Sets the path of this V1DownwardAPIVolumeFile. Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' :param path: The path of this V1DownwardAPIVolumeFile. :type: str """ self._path = path @property def field_ref(self): """ Gets the field_ref of this V1DownwardAPIVolumeFile. Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. :return: The field_ref of this V1DownwardAPIVolumeFile. :rtype: V1ObjectFieldSelector """ return self._field_ref @field_ref.setter def field_ref(self, field_ref): """ Sets the field_ref of this V1DownwardAPIVolumeFile. Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. :param field_ref: The field_ref of this V1DownwardAPIVolumeFile. :type: V1ObjectFieldSelector """ self._field_ref = field_ref def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_load_balancer_ingress.py0000664000567000056710000000677713046233226030046 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1LoadBalancerIngress(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'ip': 'str', 'hostname': 'str' } self.attribute_map = { 'ip': 'ip', 'hostname': 'hostname' } self._ip = None self._hostname = None @property def ip(self): """ Gets the ip of this V1LoadBalancerIngress. IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) :return: The ip of this V1LoadBalancerIngress. :rtype: str """ return self._ip @ip.setter def ip(self, ip): """ Sets the ip of this V1LoadBalancerIngress. IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) :param ip: The ip of this V1LoadBalancerIngress. :type: str """ self._ip = ip @property def hostname(self): """ Gets the hostname of this V1LoadBalancerIngress. Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) :return: The hostname of this V1LoadBalancerIngress. :rtype: str """ return self._hostname @hostname.setter def hostname(self, hostname): """ Sets the hostname of this V1LoadBalancerIngress. Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) :param hostname: The hostname of this V1LoadBalancerIngress. :type: str """ self._hostname = hostname def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_delete_options.py0000664000567000056710000001304513046233226026545 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1DeleteOptions(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'grace_period_seconds': 'int' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'grace_period_seconds': 'gracePeriodSeconds' } self._kind = None self._api_version = None self._grace_period_seconds = None @property def kind(self): """ Gets the kind of this V1DeleteOptions. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1DeleteOptions. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1DeleteOptions. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1DeleteOptions. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1DeleteOptions. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1DeleteOptions. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1DeleteOptions. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1DeleteOptions. :type: str """ self._api_version = api_version @property def grace_period_seconds(self): """ Gets the grace_period_seconds of this V1DeleteOptions. The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :return: The grace_period_seconds of this V1DeleteOptions. :rtype: int """ return self._grace_period_seconds @grace_period_seconds.setter def grace_period_seconds(self, grace_period_seconds): """ Sets the grace_period_seconds of this V1DeleteOptions. The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param grace_period_seconds: The grace_period_seconds of this V1DeleteOptions. :type: int """ self._grace_period_seconds = grace_period_seconds def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_node_system_info.py0000664000567000056710000002016413046233226027074 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1NodeSystemInfo(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'machine_id': 'str', 'system_uuid': 'str', 'boot_id': 'str', 'kernel_version': 'str', 'os_image': 'str', 'container_runtime_version': 'str', 'kubelet_version': 'str', 'kube_proxy_version': 'str' } self.attribute_map = { 'machine_id': 'machineID', 'system_uuid': 'systemUUID', 'boot_id': 'bootID', 'kernel_version': 'kernelVersion', 'os_image': 'osImage', 'container_runtime_version': 'containerRuntimeVersion', 'kubelet_version': 'kubeletVersion', 'kube_proxy_version': 'kubeProxyVersion' } self._machine_id = None self._system_uuid = None self._boot_id = None self._kernel_version = None self._os_image = None self._container_runtime_version = None self._kubelet_version = None self._kube_proxy_version = None @property def machine_id(self): """ Gets the machine_id of this V1NodeSystemInfo. Machine ID reported by the node. :return: The machine_id of this V1NodeSystemInfo. :rtype: str """ return self._machine_id @machine_id.setter def machine_id(self, machine_id): """ Sets the machine_id of this V1NodeSystemInfo. Machine ID reported by the node. :param machine_id: The machine_id of this V1NodeSystemInfo. :type: str """ self._machine_id = machine_id @property def system_uuid(self): """ Gets the system_uuid of this V1NodeSystemInfo. System UUID reported by the node. :return: The system_uuid of this V1NodeSystemInfo. :rtype: str """ return self._system_uuid @system_uuid.setter def system_uuid(self, system_uuid): """ Sets the system_uuid of this V1NodeSystemInfo. System UUID reported by the node. :param system_uuid: The system_uuid of this V1NodeSystemInfo. :type: str """ self._system_uuid = system_uuid @property def boot_id(self): """ Gets the boot_id of this V1NodeSystemInfo. Boot ID reported by the node. :return: The boot_id of this V1NodeSystemInfo. :rtype: str """ return self._boot_id @boot_id.setter def boot_id(self, boot_id): """ Sets the boot_id of this V1NodeSystemInfo. Boot ID reported by the node. :param boot_id: The boot_id of this V1NodeSystemInfo. :type: str """ self._boot_id = boot_id @property def kernel_version(self): """ Gets the kernel_version of this V1NodeSystemInfo. Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). :return: The kernel_version of this V1NodeSystemInfo. :rtype: str """ return self._kernel_version @kernel_version.setter def kernel_version(self, kernel_version): """ Sets the kernel_version of this V1NodeSystemInfo. Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). :param kernel_version: The kernel_version of this V1NodeSystemInfo. :type: str """ self._kernel_version = kernel_version @property def os_image(self): """ Gets the os_image of this V1NodeSystemInfo. OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). :return: The os_image of this V1NodeSystemInfo. :rtype: str """ return self._os_image @os_image.setter def os_image(self, os_image): """ Sets the os_image of this V1NodeSystemInfo. OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). :param os_image: The os_image of this V1NodeSystemInfo. :type: str """ self._os_image = os_image @property def container_runtime_version(self): """ Gets the container_runtime_version of this V1NodeSystemInfo. ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). :return: The container_runtime_version of this V1NodeSystemInfo. :rtype: str """ return self._container_runtime_version @container_runtime_version.setter def container_runtime_version(self, container_runtime_version): """ Sets the container_runtime_version of this V1NodeSystemInfo. ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). :param container_runtime_version: The container_runtime_version of this V1NodeSystemInfo. :type: str """ self._container_runtime_version = container_runtime_version @property def kubelet_version(self): """ Gets the kubelet_version of this V1NodeSystemInfo. Kubelet Version reported by the node. :return: The kubelet_version of this V1NodeSystemInfo. :rtype: str """ return self._kubelet_version @kubelet_version.setter def kubelet_version(self, kubelet_version): """ Sets the kubelet_version of this V1NodeSystemInfo. Kubelet Version reported by the node. :param kubelet_version: The kubelet_version of this V1NodeSystemInfo. :type: str """ self._kubelet_version = kubelet_version @property def kube_proxy_version(self): """ Gets the kube_proxy_version of this V1NodeSystemInfo. KubeProxy Version reported by the node. :return: The kube_proxy_version of this V1NodeSystemInfo. :rtype: str """ return self._kube_proxy_version @kube_proxy_version.setter def kube_proxy_version(self, kube_proxy_version): """ Sets the kube_proxy_version of this V1NodeSystemInfo. KubeProxy Version reported by the node. :param kube_proxy_version: The kube_proxy_version of this V1NodeSystemInfo. :type: str """ self._kube_proxy_version = kube_proxy_version def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_container_state_waiting.py0000664000567000056710000000657313046233226030444 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ContainerStateWaiting(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'reason': 'str', 'message': 'str' } self.attribute_map = { 'reason': 'reason', 'message': 'message' } self._reason = None self._message = None @property def reason(self): """ Gets the reason of this V1ContainerStateWaiting. (brief) reason the container is not yet running. :return: The reason of this V1ContainerStateWaiting. :rtype: str """ return self._reason @reason.setter def reason(self, reason): """ Sets the reason of this V1ContainerStateWaiting. (brief) reason the container is not yet running. :param reason: The reason of this V1ContainerStateWaiting. :type: str """ self._reason = reason @property def message(self): """ Gets the message of this V1ContainerStateWaiting. Message regarding why the container is not yet running. :return: The message of this V1ContainerStateWaiting. :rtype: str """ return self._message @message.setter def message(self, message): """ Sets the message of this V1ContainerStateWaiting. Message regarding why the container is not yet running. :param message: The message of this V1ContainerStateWaiting. :type: str """ self._message = message def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_aws_elastic_block_store_volume_source.py0000664000567000056710000001500613046233226033362 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1AWSElasticBlockStoreVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'volume_id': 'str', 'fs_type': 'str', 'partition': 'int', 'read_only': 'bool' } self.attribute_map = { 'volume_id': 'volumeID', 'fs_type': 'fsType', 'partition': 'partition', 'read_only': 'readOnly' } self._volume_id = None self._fs_type = None self._partition = None self._read_only = None @property def volume_id(self): """ Gets the volume_id of this V1AWSElasticBlockStoreVolumeSource. Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :return: The volume_id of this V1AWSElasticBlockStoreVolumeSource. :rtype: str """ return self._volume_id @volume_id.setter def volume_id(self, volume_id): """ Sets the volume_id of this V1AWSElasticBlockStoreVolumeSource. Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :param volume_id: The volume_id of this V1AWSElasticBlockStoreVolumeSource. :type: str """ self._volume_id = volume_id @property def fs_type(self): """ Gets the fs_type of this V1AWSElasticBlockStoreVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :return: The fs_type of this V1AWSElasticBlockStoreVolumeSource. :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): """ Sets the fs_type of this V1AWSElasticBlockStoreVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :param fs_type: The fs_type of this V1AWSElasticBlockStoreVolumeSource. :type: str """ self._fs_type = fs_type @property def partition(self): """ Gets the partition of this V1AWSElasticBlockStoreVolumeSource. The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). :return: The partition of this V1AWSElasticBlockStoreVolumeSource. :rtype: int """ return self._partition @partition.setter def partition(self, partition): """ Sets the partition of this V1AWSElasticBlockStoreVolumeSource. The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). :param partition: The partition of this V1AWSElasticBlockStoreVolumeSource. :type: int """ self._partition = partition @property def read_only(self): """ Gets the read_only of this V1AWSElasticBlockStoreVolumeSource. Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :return: The read_only of this V1AWSElasticBlockStoreVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1AWSElasticBlockStoreVolumeSource. Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :param read_only: The read_only of this V1AWSElasticBlockStoreVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_pod.py0000664000567000056710000001506413046233226024315 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Pod(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1PodSpec', 'status': 'V1PodStatus' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status' } self._kind = None self._api_version = None self._metadata = None self._spec = None self._status = None @property def kind(self): """ Gets the kind of this V1Pod. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1Pod. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1Pod. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1Pod. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1Pod. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1Pod. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1Pod. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1Pod. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1Pod. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1Pod. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1Pod. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1Pod. :type: V1ObjectMeta """ self._metadata = metadata @property def spec(self): """ Gets the spec of this V1Pod. Specification of the desired behavior of the pod. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V1Pod. :rtype: V1PodSpec """ return self._spec @spec.setter def spec(self, spec): """ Sets the spec of this V1Pod. Specification of the desired behavior of the pod. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V1Pod. :type: V1PodSpec """ self._spec = spec @property def status(self): """ Gets the status of this V1Pod. Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The status of this V1Pod. :rtype: V1PodStatus """ return self._status @status.setter def status(self, status): """ Sets the status of this V1Pod. Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param status: The status of this V1Pod. :type: V1PodStatus """ self._status = status def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_resource_quota_status.py0000664000567000056710000000717113046233226030176 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ResourceQuotaStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'hard': 'object', 'used': 'object' } self.attribute_map = { 'hard': 'hard', 'used': 'used' } self._hard = None self._used = None @property def hard(self): """ Gets the hard of this V1ResourceQuotaStatus. Hard is the set of enforced hard limits for each named resource. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota :return: The hard of this V1ResourceQuotaStatus. :rtype: object """ return self._hard @hard.setter def hard(self, hard): """ Sets the hard of this V1ResourceQuotaStatus. Hard is the set of enforced hard limits for each named resource. More info: http://releases.k8s.io/release-1.2/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota :param hard: The hard of this V1ResourceQuotaStatus. :type: object """ self._hard = hard @property def used(self): """ Gets the used of this V1ResourceQuotaStatus. Used is the current observed total usage of the resource in the namespace. :return: The used of this V1ResourceQuotaStatus. :rtype: object """ return self._used @used.setter def used(self, used): """ Sets the used of this V1ResourceQuotaStatus. Used is the current observed total usage of the resource in the namespace. :param used: The used of this V1ResourceQuotaStatus. :type: object """ self._used = used def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_secret_key_selector.py0000664000567000056710000000657513046233226027577 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1SecretKeySelector(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'key': 'str' } self.attribute_map = { 'name': 'name', 'key': 'key' } self._name = None self._key = None @property def name(self): """ Gets the name of this V1SecretKeySelector. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :return: The name of this V1SecretKeySelector. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1SecretKeySelector. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1SecretKeySelector. :type: str """ self._name = name @property def key(self): """ Gets the key of this V1SecretKeySelector. The key of the secret to select from. Must be a valid secret key. :return: The key of this V1SecretKeySelector. :rtype: str """ return self._key @key.setter def key(self, key): """ Sets the key of this V1SecretKeySelector. The key of the secret to select from. Must be a valid secret key. :param key: The key of this V1SecretKeySelector. :type: str """ self._key = key def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_replication_controller.py0000664000567000056710000001674613046233226030317 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ReplicationController(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1ReplicationControllerSpec', 'status': 'V1ReplicationControllerStatus' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status' } self._kind = None self._api_version = None self._metadata = None self._spec = None self._status = None @property def kind(self): """ Gets the kind of this V1ReplicationController. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1ReplicationController. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1ReplicationController. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1ReplicationController. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1ReplicationController. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1ReplicationController. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1ReplicationController. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1ReplicationController. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1ReplicationController. If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1ReplicationController. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1ReplicationController. If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1ReplicationController. :type: V1ObjectMeta """ self._metadata = metadata @property def spec(self): """ Gets the spec of this V1ReplicationController. Spec defines the specification of the desired behavior of the replication controller. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V1ReplicationController. :rtype: V1ReplicationControllerSpec """ return self._spec @spec.setter def spec(self, spec): """ Sets the spec of this V1ReplicationController. Spec defines the specification of the desired behavior of the replication controller. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V1ReplicationController. :type: V1ReplicationControllerSpec """ self._spec = spec @property def status(self): """ Gets the status of this V1ReplicationController. Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The status of this V1ReplicationController. :rtype: V1ReplicationControllerStatus """ return self._status @status.setter def status(self, status): """ Sets the status of this V1ReplicationController. Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param status: The status of this V1ReplicationController. :type: V1ReplicationControllerStatus """ self._status = status def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_downward_api_volume_source.py0000664000567000056710000000536413046233226031162 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1DownwardAPIVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'items': 'list[V1DownwardAPIVolumeFile]' } self.attribute_map = { 'items': 'items' } self._items = None @property def items(self): """ Gets the items of this V1DownwardAPIVolumeSource. Items is a list of downward API volume file :return: The items of this V1DownwardAPIVolumeSource. :rtype: list[V1DownwardAPIVolumeFile] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1DownwardAPIVolumeSource. Items is a list of downward API volume file :param items: The items of this V1DownwardAPIVolumeSource. :type: list[V1DownwardAPIVolumeFile] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_scale.py0000664000567000056710000001470013046233226024616 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Scale(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1ScaleSpec', 'status': 'V1ScaleStatus' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status' } self._kind = None self._api_version = None self._metadata = None self._spec = None self._status = None @property def kind(self): """ Gets the kind of this V1Scale. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1Scale. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1Scale. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1Scale. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1Scale. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1Scale. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1Scale. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1Scale. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1Scale. Standard object metadata; More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata. :return: The metadata of this V1Scale. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1Scale. Standard object metadata; More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata. :param metadata: The metadata of this V1Scale. :type: V1ObjectMeta """ self._metadata = metadata @property def spec(self): """ Gets the spec of this V1Scale. defines the behavior of the scale. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status. :return: The spec of this V1Scale. :rtype: V1ScaleSpec """ return self._spec @spec.setter def spec(self, spec): """ Sets the spec of this V1Scale. defines the behavior of the scale. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status. :param spec: The spec of this V1Scale. :type: V1ScaleSpec """ self._spec = spec @property def status(self): """ Gets the status of this V1Scale. current status of the scale. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status. Read-only. :return: The status of this V1Scale. :rtype: V1ScaleStatus """ return self._status @status.setter def status(self, status): """ Sets the status of this V1Scale. current status of the scale. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status. Read-only. :param status: The status of this V1Scale. :type: V1ScaleStatus """ self._status = status def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_replication_controller_list.py0000664000567000056710000001406413046233226031341 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ReplicationControllerList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'items': 'list[V1ReplicationController]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'items': 'items' } self._kind = None self._api_version = None self._metadata = None self._items = None @property def kind(self): """ Gets the kind of this V1ReplicationControllerList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1ReplicationControllerList. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1ReplicationControllerList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1ReplicationControllerList. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1ReplicationControllerList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1ReplicationControllerList. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1ReplicationControllerList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1ReplicationControllerList. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1ReplicationControllerList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1ReplicationControllerList. :rtype: UnversionedListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1ReplicationControllerList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1ReplicationControllerList. :type: UnversionedListMeta """ self._metadata = metadata @property def items(self): """ Gets the items of this V1ReplicationControllerList. List of replication controllers. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md :return: The items of this V1ReplicationControllerList. :rtype: list[V1ReplicationController] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1ReplicationControllerList. List of replication controllers. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md :param items: The items of this V1ReplicationControllerList. :type: list[V1ReplicationController] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_git_repo_volume_source.py0000664000567000056710000001064213046233226030307 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1GitRepoVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'repository': 'str', 'revision': 'str', 'directory': 'str' } self.attribute_map = { 'repository': 'repository', 'revision': 'revision', 'directory': 'directory' } self._repository = None self._revision = None self._directory = None @property def repository(self): """ Gets the repository of this V1GitRepoVolumeSource. Repository URL :return: The repository of this V1GitRepoVolumeSource. :rtype: str """ return self._repository @repository.setter def repository(self, repository): """ Sets the repository of this V1GitRepoVolumeSource. Repository URL :param repository: The repository of this V1GitRepoVolumeSource. :type: str """ self._repository = repository @property def revision(self): """ Gets the revision of this V1GitRepoVolumeSource. Commit hash for the specified revision. :return: The revision of this V1GitRepoVolumeSource. :rtype: str """ return self._revision @revision.setter def revision(self, revision): """ Sets the revision of this V1GitRepoVolumeSource. Commit hash for the specified revision. :param revision: The revision of this V1GitRepoVolumeSource. :type: str """ self._revision = revision @property def directory(self): """ Gets the directory of this V1GitRepoVolumeSource. Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. :return: The directory of this V1GitRepoVolumeSource. :rtype: str """ return self._directory @directory.setter def directory(self, directory): """ Sets the directory of this V1GitRepoVolumeSource. Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. :param directory: The directory of this V1GitRepoVolumeSource. :type: str """ self._directory = directory def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_config_map_list.py0000664000567000056710000001313613046233226026666 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ConfigMapList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'items': 'list[V1ConfigMap]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'items': 'items' } self._kind = None self._api_version = None self._metadata = None self._items = None @property def kind(self): """ Gets the kind of this V1ConfigMapList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1ConfigMapList. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1ConfigMapList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1ConfigMapList. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1ConfigMapList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1ConfigMapList. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1ConfigMapList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1ConfigMapList. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1ConfigMapList. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1ConfigMapList. :rtype: UnversionedListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1ConfigMapList. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1ConfigMapList. :type: UnversionedListMeta """ self._metadata = metadata @property def items(self): """ Gets the items of this V1ConfigMapList. Items is the list of ConfigMaps. :return: The items of this V1ConfigMapList. :rtype: list[V1ConfigMap] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1ConfigMapList. Items is the list of ConfigMaps. :param items: The items of this V1ConfigMapList. :type: list[V1ConfigMap] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_env_var_source.py0000664000567000056710000001062613046233226026552 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1EnvVarSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'field_ref': 'V1ObjectFieldSelector', 'config_map_key_ref': 'V1ConfigMapKeySelector', 'secret_key_ref': 'V1SecretKeySelector' } self.attribute_map = { 'field_ref': 'fieldRef', 'config_map_key_ref': 'configMapKeyRef', 'secret_key_ref': 'secretKeyRef' } self._field_ref = None self._config_map_key_ref = None self._secret_key_ref = None @property def field_ref(self): """ Gets the field_ref of this V1EnvVarSource. Selects a field of the pod; only name and namespace are supported. :return: The field_ref of this V1EnvVarSource. :rtype: V1ObjectFieldSelector """ return self._field_ref @field_ref.setter def field_ref(self, field_ref): """ Sets the field_ref of this V1EnvVarSource. Selects a field of the pod; only name and namespace are supported. :param field_ref: The field_ref of this V1EnvVarSource. :type: V1ObjectFieldSelector """ self._field_ref = field_ref @property def config_map_key_ref(self): """ Gets the config_map_key_ref of this V1EnvVarSource. Selects a key of a ConfigMap. :return: The config_map_key_ref of this V1EnvVarSource. :rtype: V1ConfigMapKeySelector """ return self._config_map_key_ref @config_map_key_ref.setter def config_map_key_ref(self, config_map_key_ref): """ Sets the config_map_key_ref of this V1EnvVarSource. Selects a key of a ConfigMap. :param config_map_key_ref: The config_map_key_ref of this V1EnvVarSource. :type: V1ConfigMapKeySelector """ self._config_map_key_ref = config_map_key_ref @property def secret_key_ref(self): """ Gets the secret_key_ref of this V1EnvVarSource. Selects a key of a secret in the pod's namespace :return: The secret_key_ref of this V1EnvVarSource. :rtype: V1SecretKeySelector """ return self._secret_key_ref @secret_key_ref.setter def secret_key_ref(self, secret_key_ref): """ Sets the secret_key_ref of this V1EnvVarSource. Selects a key of a secret in the pod's namespace :param secret_key_ref: The secret_key_ref of this V1EnvVarSource. :type: V1SecretKeySelector """ self._secret_key_ref = secret_key_ref def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_persistent_volume_access_mode.py0000664000567000056710000000406013046233226031641 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PersistentVolumeAccessMode(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { } self.attribute_map = { } def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_volume.py0000664000567000056710000005021613046233226025040 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Volume(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'host_path': 'V1HostPathVolumeSource', 'empty_dir': 'V1EmptyDirVolumeSource', 'gce_persistent_disk': 'V1GCEPersistentDiskVolumeSource', 'aws_elastic_block_store': 'V1AWSElasticBlockStoreVolumeSource', 'git_repo': 'V1GitRepoVolumeSource', 'secret': 'V1SecretVolumeSource', 'nfs': 'V1NFSVolumeSource', 'iscsi': 'V1ISCSIVolumeSource', 'glusterfs': 'V1GlusterfsVolumeSource', 'persistent_volume_claim': 'V1PersistentVolumeClaimVolumeSource', 'rbd': 'V1RBDVolumeSource', 'flex_volume': 'V1FlexVolumeSource', 'cinder': 'V1CinderVolumeSource', 'cephfs': 'V1CephFSVolumeSource', 'flocker': 'V1FlockerVolumeSource', 'downward_api': 'V1DownwardAPIVolumeSource', 'fc': 'V1FCVolumeSource', 'azure_file': 'V1AzureFileVolumeSource', 'config_map': 'V1ConfigMapVolumeSource' } self.attribute_map = { 'name': 'name', 'host_path': 'hostPath', 'empty_dir': 'emptyDir', 'gce_persistent_disk': 'gcePersistentDisk', 'aws_elastic_block_store': 'awsElasticBlockStore', 'git_repo': 'gitRepo', 'secret': 'secret', 'nfs': 'nfs', 'iscsi': 'iscsi', 'glusterfs': 'glusterfs', 'persistent_volume_claim': 'persistentVolumeClaim', 'rbd': 'rbd', 'flex_volume': 'flexVolume', 'cinder': 'cinder', 'cephfs': 'cephfs', 'flocker': 'flocker', 'downward_api': 'downwardAPI', 'fc': 'fc', 'azure_file': 'azureFile', 'config_map': 'configMap' } self._name = None self._host_path = None self._empty_dir = None self._gce_persistent_disk = None self._aws_elastic_block_store = None self._git_repo = None self._secret = None self._nfs = None self._iscsi = None self._glusterfs = None self._persistent_volume_claim = None self._rbd = None self._flex_volume = None self._cinder = None self._cephfs = None self._flocker = None self._downward_api = None self._fc = None self._azure_file = None self._config_map = None @property def name(self): """ Gets the name of this V1Volume. Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :return: The name of this V1Volume. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1Volume. Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1Volume. :type: str """ self._name = name @property def host_path(self): """ Gets the host_path of this V1Volume. HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath :return: The host_path of this V1Volume. :rtype: V1HostPathVolumeSource """ return self._host_path @host_path.setter def host_path(self, host_path): """ Sets the host_path of this V1Volume. HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath :param host_path: The host_path of this V1Volume. :type: V1HostPathVolumeSource """ self._host_path = host_path @property def empty_dir(self): """ Gets the empty_dir of this V1Volume. EmptyDir represents a temporary directory that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir :return: The empty_dir of this V1Volume. :rtype: V1EmptyDirVolumeSource """ return self._empty_dir @empty_dir.setter def empty_dir(self, empty_dir): """ Sets the empty_dir of this V1Volume. EmptyDir represents a temporary directory that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir :param empty_dir: The empty_dir of this V1Volume. :type: V1EmptyDirVolumeSource """ self._empty_dir = empty_dir @property def gce_persistent_disk(self): """ Gets the gce_persistent_disk of this V1Volume. GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :return: The gce_persistent_disk of this V1Volume. :rtype: V1GCEPersistentDiskVolumeSource """ return self._gce_persistent_disk @gce_persistent_disk.setter def gce_persistent_disk(self, gce_persistent_disk): """ Sets the gce_persistent_disk of this V1Volume. GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :param gce_persistent_disk: The gce_persistent_disk of this V1Volume. :type: V1GCEPersistentDiskVolumeSource """ self._gce_persistent_disk = gce_persistent_disk @property def aws_elastic_block_store(self): """ Gets the aws_elastic_block_store of this V1Volume. AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :return: The aws_elastic_block_store of this V1Volume. :rtype: V1AWSElasticBlockStoreVolumeSource """ return self._aws_elastic_block_store @aws_elastic_block_store.setter def aws_elastic_block_store(self, aws_elastic_block_store): """ Sets the aws_elastic_block_store of this V1Volume. AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :param aws_elastic_block_store: The aws_elastic_block_store of this V1Volume. :type: V1AWSElasticBlockStoreVolumeSource """ self._aws_elastic_block_store = aws_elastic_block_store @property def git_repo(self): """ Gets the git_repo of this V1Volume. GitRepo represents a git repository at a particular revision. :return: The git_repo of this V1Volume. :rtype: V1GitRepoVolumeSource """ return self._git_repo @git_repo.setter def git_repo(self, git_repo): """ Sets the git_repo of this V1Volume. GitRepo represents a git repository at a particular revision. :param git_repo: The git_repo of this V1Volume. :type: V1GitRepoVolumeSource """ self._git_repo = git_repo @property def secret(self): """ Gets the secret of this V1Volume. Secret represents a secret that should populate this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets :return: The secret of this V1Volume. :rtype: V1SecretVolumeSource """ return self._secret @secret.setter def secret(self, secret): """ Sets the secret of this V1Volume. Secret represents a secret that should populate this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets :param secret: The secret of this V1Volume. :type: V1SecretVolumeSource """ self._secret = secret @property def nfs(self): """ Gets the nfs of this V1Volume. NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :return: The nfs of this V1Volume. :rtype: V1NFSVolumeSource """ return self._nfs @nfs.setter def nfs(self, nfs): """ Sets the nfs of this V1Volume. NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :param nfs: The nfs of this V1Volume. :type: V1NFSVolumeSource """ self._nfs = nfs @property def iscsi(self): """ Gets the iscsi of this V1Volume. ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/examples/iscsi/README.md :return: The iscsi of this V1Volume. :rtype: V1ISCSIVolumeSource """ return self._iscsi @iscsi.setter def iscsi(self, iscsi): """ Sets the iscsi of this V1Volume. ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/examples/iscsi/README.md :param iscsi: The iscsi of this V1Volume. :type: V1ISCSIVolumeSource """ self._iscsi = iscsi @property def glusterfs(self): """ Gets the glusterfs of this V1Volume. Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md :return: The glusterfs of this V1Volume. :rtype: V1GlusterfsVolumeSource """ return self._glusterfs @glusterfs.setter def glusterfs(self, glusterfs): """ Sets the glusterfs of this V1Volume. Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md :param glusterfs: The glusterfs of this V1Volume. :type: V1GlusterfsVolumeSource """ self._glusterfs = glusterfs @property def persistent_volume_claim(self): """ Gets the persistent_volume_claim of this V1Volume. PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :return: The persistent_volume_claim of this V1Volume. :rtype: V1PersistentVolumeClaimVolumeSource """ return self._persistent_volume_claim @persistent_volume_claim.setter def persistent_volume_claim(self, persistent_volume_claim): """ Sets the persistent_volume_claim of this V1Volume. PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :param persistent_volume_claim: The persistent_volume_claim of this V1Volume. :type: V1PersistentVolumeClaimVolumeSource """ self._persistent_volume_claim = persistent_volume_claim @property def rbd(self): """ Gets the rbd of this V1Volume. RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md :return: The rbd of this V1Volume. :rtype: V1RBDVolumeSource """ return self._rbd @rbd.setter def rbd(self, rbd): """ Sets the rbd of this V1Volume. RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md :param rbd: The rbd of this V1Volume. :type: V1RBDVolumeSource """ self._rbd = rbd @property def flex_volume(self): """ Gets the flex_volume of this V1Volume. FlexVolume represents a generic volume resource that is provisioned/attached using a exec based plugin. This is an alpha feature and may change in future. :return: The flex_volume of this V1Volume. :rtype: V1FlexVolumeSource """ return self._flex_volume @flex_volume.setter def flex_volume(self, flex_volume): """ Sets the flex_volume of this V1Volume. FlexVolume represents a generic volume resource that is provisioned/attached using a exec based plugin. This is an alpha feature and may change in future. :param flex_volume: The flex_volume of this V1Volume. :type: V1FlexVolumeSource """ self._flex_volume = flex_volume @property def cinder(self): """ Gets the cinder of this V1Volume. Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :return: The cinder of this V1Volume. :rtype: V1CinderVolumeSource """ return self._cinder @cinder.setter def cinder(self, cinder): """ Sets the cinder of this V1Volume. Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :param cinder: The cinder of this V1Volume. :type: V1CinderVolumeSource """ self._cinder = cinder @property def cephfs(self): """ Gets the cephfs of this V1Volume. CephFS represents a Ceph FS mount on the host that shares a pod's lifetime :return: The cephfs of this V1Volume. :rtype: V1CephFSVolumeSource """ return self._cephfs @cephfs.setter def cephfs(self, cephfs): """ Sets the cephfs of this V1Volume. CephFS represents a Ceph FS mount on the host that shares a pod's lifetime :param cephfs: The cephfs of this V1Volume. :type: V1CephFSVolumeSource """ self._cephfs = cephfs @property def flocker(self): """ Gets the flocker of this V1Volume. Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running :return: The flocker of this V1Volume. :rtype: V1FlockerVolumeSource """ return self._flocker @flocker.setter def flocker(self, flocker): """ Sets the flocker of this V1Volume. Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running :param flocker: The flocker of this V1Volume. :type: V1FlockerVolumeSource """ self._flocker = flocker @property def downward_api(self): """ Gets the downward_api of this V1Volume. DownwardAPI represents downward API about the pod that should populate this volume :return: The downward_api of this V1Volume. :rtype: V1DownwardAPIVolumeSource """ return self._downward_api @downward_api.setter def downward_api(self, downward_api): """ Sets the downward_api of this V1Volume. DownwardAPI represents downward API about the pod that should populate this volume :param downward_api: The downward_api of this V1Volume. :type: V1DownwardAPIVolumeSource """ self._downward_api = downward_api @property def fc(self): """ Gets the fc of this V1Volume. FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. :return: The fc of this V1Volume. :rtype: V1FCVolumeSource """ return self._fc @fc.setter def fc(self, fc): """ Sets the fc of this V1Volume. FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. :param fc: The fc of this V1Volume. :type: V1FCVolumeSource """ self._fc = fc @property def azure_file(self): """ Gets the azure_file of this V1Volume. AzureFile represents an Azure File Service mount on the host and bind mount to the pod. :return: The azure_file of this V1Volume. :rtype: V1AzureFileVolumeSource """ return self._azure_file @azure_file.setter def azure_file(self, azure_file): """ Sets the azure_file of this V1Volume. AzureFile represents an Azure File Service mount on the host and bind mount to the pod. :param azure_file: The azure_file of this V1Volume. :type: V1AzureFileVolumeSource """ self._azure_file = azure_file @property def config_map(self): """ Gets the config_map of this V1Volume. ConfigMap represents a configMap that should populate this volume :return: The config_map of this V1Volume. :rtype: V1ConfigMapVolumeSource """ return self._config_map @config_map.setter def config_map(self, config_map): """ Sets the config_map of this V1Volume. ConfigMap represents a configMap that should populate this volume :param config_map: The config_map of this V1Volume. :type: V1ConfigMapVolumeSource """ self._config_map = config_map def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_node_condition.py0000664000567000056710000001434113046233226026523 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1NodeCondition(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'type': 'str', 'status': 'str', 'last_heartbeat_time': 'str', 'last_transition_time': 'str', 'reason': 'str', 'message': 'str' } self.attribute_map = { 'type': 'type', 'status': 'status', 'last_heartbeat_time': 'lastHeartbeatTime', 'last_transition_time': 'lastTransitionTime', 'reason': 'reason', 'message': 'message' } self._type = None self._status = None self._last_heartbeat_time = None self._last_transition_time = None self._reason = None self._message = None @property def type(self): """ Gets the type of this V1NodeCondition. Type of node condition. :return: The type of this V1NodeCondition. :rtype: str """ return self._type @type.setter def type(self, type): """ Sets the type of this V1NodeCondition. Type of node condition. :param type: The type of this V1NodeCondition. :type: str """ self._type = type @property def status(self): """ Gets the status of this V1NodeCondition. Status of the condition, one of True, False, Unknown. :return: The status of this V1NodeCondition. :rtype: str """ return self._status @status.setter def status(self, status): """ Sets the status of this V1NodeCondition. Status of the condition, one of True, False, Unknown. :param status: The status of this V1NodeCondition. :type: str """ self._status = status @property def last_heartbeat_time(self): """ Gets the last_heartbeat_time of this V1NodeCondition. Last time we got an update on a given condition. :return: The last_heartbeat_time of this V1NodeCondition. :rtype: str """ return self._last_heartbeat_time @last_heartbeat_time.setter def last_heartbeat_time(self, last_heartbeat_time): """ Sets the last_heartbeat_time of this V1NodeCondition. Last time we got an update on a given condition. :param last_heartbeat_time: The last_heartbeat_time of this V1NodeCondition. :type: str """ self._last_heartbeat_time = last_heartbeat_time @property def last_transition_time(self): """ Gets the last_transition_time of this V1NodeCondition. Last time the condition transit from one status to another. :return: The last_transition_time of this V1NodeCondition. :rtype: str """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): """ Sets the last_transition_time of this V1NodeCondition. Last time the condition transit from one status to another. :param last_transition_time: The last_transition_time of this V1NodeCondition. :type: str """ self._last_transition_time = last_transition_time @property def reason(self): """ Gets the reason of this V1NodeCondition. (brief) reason for the condition's last transition. :return: The reason of this V1NodeCondition. :rtype: str """ return self._reason @reason.setter def reason(self, reason): """ Sets the reason of this V1NodeCondition. (brief) reason for the condition's last transition. :param reason: The reason of this V1NodeCondition. :type: str """ self._reason = reason @property def message(self): """ Gets the message of this V1NodeCondition. Human readable message indicating details about last transition. :return: The message of this V1NodeCondition. :rtype: str """ return self._message @message.setter def message(self, message): """ Sets the message of this V1NodeCondition. Human readable message indicating details about last transition. :param message: The message of this V1NodeCondition. :type: str """ self._message = message def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_node_address.py0000664000567000056710000000631713046233226026166 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1NodeAddress(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'type': 'str', 'address': 'str' } self.attribute_map = { 'type': 'type', 'address': 'address' } self._type = None self._address = None @property def type(self): """ Gets the type of this V1NodeAddress. Node address type, one of Hostname, ExternalIP or InternalIP. :return: The type of this V1NodeAddress. :rtype: str """ return self._type @type.setter def type(self, type): """ Sets the type of this V1NodeAddress. Node address type, one of Hostname, ExternalIP or InternalIP. :param type: The type of this V1NodeAddress. :type: str """ self._type = type @property def address(self): """ Gets the address of this V1NodeAddress. The node address. :return: The address of this V1NodeAddress. :rtype: str """ return self._address @address.setter def address(self, address): """ Sets the address of this V1NodeAddress. The node address. :param address: The address of this V1NodeAddress. :type: str """ self._address = address def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_service_list.py0000664000567000056710000001311413046233226026220 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ServiceList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'items': 'list[V1Service]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'items': 'items' } self._kind = None self._api_version = None self._metadata = None self._items = None @property def kind(self): """ Gets the kind of this V1ServiceList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1ServiceList. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1ServiceList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1ServiceList. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1ServiceList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1ServiceList. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1ServiceList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1ServiceList. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1ServiceList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1ServiceList. :rtype: UnversionedListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1ServiceList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1ServiceList. :type: UnversionedListMeta """ self._metadata = metadata @property def items(self): """ Gets the items of this V1ServiceList. List of services :return: The items of this V1ServiceList. :rtype: list[V1Service] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1ServiceList. List of services :param items: The items of this V1ServiceList. :type: list[V1Service] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_local_object_reference.py0000664000567000056710000000540113046233226030163 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1LocalObjectReference(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str' } self.attribute_map = { 'name': 'name' } self._name = None @property def name(self): """ Gets the name of this V1LocalObjectReference. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :return: The name of this V1LocalObjectReference. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1LocalObjectReference. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1LocalObjectReference. :type: str """ self._name = name def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_env_var.py0000664000567000056710000001126113046233226025166 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1EnvVar(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'value': 'str', 'value_from': 'V1EnvVarSource' } self.attribute_map = { 'name': 'name', 'value': 'value', 'value_from': 'valueFrom' } self._name = None self._value = None self._value_from = None @property def name(self): """ Gets the name of this V1EnvVar. Name of the environment variable. Must be a C_IDENTIFIER. :return: The name of this V1EnvVar. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1EnvVar. Name of the environment variable. Must be a C_IDENTIFIER. :param name: The name of this V1EnvVar. :type: str """ self._name = name @property def value(self): """ Gets the value of this V1EnvVar. Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". :return: The value of this V1EnvVar. :rtype: str """ return self._value @value.setter def value(self, value): """ Sets the value of this V1EnvVar. Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". :param value: The value of this V1EnvVar. :type: str """ self._value = value @property def value_from(self): """ Gets the value_from of this V1EnvVar. Source for the environment variable's value. Cannot be used if value is not empty. :return: The value_from of this V1EnvVar. :rtype: V1EnvVarSource """ return self._value_from @value_from.setter def value_from(self, value_from): """ Sets the value_from of this V1EnvVar. Source for the environment variable's value. Cannot be used if value is not empty. :param value_from: The value_from of this V1EnvVar. :type: V1EnvVarSource """ self._value_from = value_from def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_node_spec.py0000664000567000056710000001234613046233226025472 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1NodeSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'pod_cidr': 'str', 'external_id': 'str', 'provider_id': 'str', 'unschedulable': 'bool' } self.attribute_map = { 'pod_cidr': 'podCIDR', 'external_id': 'externalID', 'provider_id': 'providerID', 'unschedulable': 'unschedulable' } self._pod_cidr = None self._external_id = None self._provider_id = None self._unschedulable = None @property def pod_cidr(self): """ Gets the pod_cidr of this V1NodeSpec. PodCIDR represents the pod IP range assigned to the node. :return: The pod_cidr of this V1NodeSpec. :rtype: str """ return self._pod_cidr @pod_cidr.setter def pod_cidr(self, pod_cidr): """ Sets the pod_cidr of this V1NodeSpec. PodCIDR represents the pod IP range assigned to the node. :param pod_cidr: The pod_cidr of this V1NodeSpec. :type: str """ self._pod_cidr = pod_cidr @property def external_id(self): """ Gets the external_id of this V1NodeSpec. External ID of the node assigned by some machine database (e.g. a cloud provider). Deprecated. :return: The external_id of this V1NodeSpec. :rtype: str """ return self._external_id @external_id.setter def external_id(self, external_id): """ Sets the external_id of this V1NodeSpec. External ID of the node assigned by some machine database (e.g. a cloud provider). Deprecated. :param external_id: The external_id of this V1NodeSpec. :type: str """ self._external_id = external_id @property def provider_id(self): """ Gets the provider_id of this V1NodeSpec. ID of the node assigned by the cloud provider in the format: :// :return: The provider_id of this V1NodeSpec. :rtype: str """ return self._provider_id @provider_id.setter def provider_id(self, provider_id): """ Sets the provider_id of this V1NodeSpec. ID of the node assigned by the cloud provider in the format: :// :param provider_id: The provider_id of this V1NodeSpec. :type: str """ self._provider_id = provider_id @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/release-1.2/docs/admin/node.md#manual-node-administration\"` :return: The unschedulable of this V1NodeSpec. :rtype: bool """ return self._unschedulable @unschedulable.setter 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/release-1.2/docs/admin/node.md#manual-node-administration\"` :param unschedulable: The unschedulable of this V1NodeSpec. :type: bool """ self._unschedulable = unschedulable def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_se_linux_options.py0000664000567000056710000001103413046233226027125 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1SELinuxOptions(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'user': 'str', 'role': 'str', 'type': 'str', 'level': 'str' } self.attribute_map = { 'user': 'user', 'role': 'role', 'type': 'type', 'level': 'level' } self._user = None self._role = None self._type = None self._level = None @property def user(self): """ Gets the user of this V1SELinuxOptions. User is a SELinux user label that applies to the container. :return: The user of this V1SELinuxOptions. :rtype: str """ return self._user @user.setter def user(self, user): """ Sets the user of this V1SELinuxOptions. User is a SELinux user label that applies to the container. :param user: The user of this V1SELinuxOptions. :type: str """ self._user = user @property def role(self): """ Gets the role of this V1SELinuxOptions. Role is a SELinux role label that applies to the container. :return: The role of this V1SELinuxOptions. :rtype: str """ return self._role @role.setter def role(self, role): """ Sets the role of this V1SELinuxOptions. Role is a SELinux role label that applies to the container. :param role: The role of this V1SELinuxOptions. :type: str """ self._role = role @property def type(self): """ Gets the type of this V1SELinuxOptions. Type is a SELinux type label that applies to the container. :return: The type of this V1SELinuxOptions. :rtype: str """ return self._type @type.setter def type(self, type): """ Sets the type of this V1SELinuxOptions. Type is a SELinux type label that applies to the container. :param type: The type of this V1SELinuxOptions. :type: str """ self._type = type @property def level(self): """ Gets the level of this V1SELinuxOptions. Level is SELinux level label that applies to the container. :return: The level of this V1SELinuxOptions. :rtype: str """ return self._level @level.setter def level(self, level): """ Sets the level of this V1SELinuxOptions. Level is SELinux level label that applies to the container. :param level: The level of this V1SELinuxOptions. :type: str """ self._level = level def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_container_status.py0000664000567000056710000002051013046233226027110 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ContainerStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'state': 'V1ContainerState', 'last_state': 'V1ContainerState', 'ready': 'bool', 'restart_count': 'int', 'image': 'str', 'image_id': 'str', 'container_id': 'str' } self.attribute_map = { 'name': 'name', 'state': 'state', 'last_state': 'lastState', 'ready': 'ready', 'restart_count': 'restartCount', 'image': 'image', 'image_id': 'imageID', 'container_id': 'containerID' } self._name = None self._state = None self._last_state = None self._ready = None self._restart_count = None self._image = None self._image_id = None self._container_id = None @property def name(self): """ Gets the name of this V1ContainerStatus. This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. :return: The name of this V1ContainerStatus. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1ContainerStatus. This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. :param name: The name of this V1ContainerStatus. :type: str """ self._name = name @property def state(self): """ Gets the state of this V1ContainerStatus. Details about the container's current condition. :return: The state of this V1ContainerStatus. :rtype: V1ContainerState """ return self._state @state.setter def state(self, state): """ Sets the state of this V1ContainerStatus. Details about the container's current condition. :param state: The state of this V1ContainerStatus. :type: V1ContainerState """ self._state = state @property def last_state(self): """ Gets the last_state of this V1ContainerStatus. Details about the container's last termination condition. :return: The last_state of this V1ContainerStatus. :rtype: V1ContainerState """ return self._last_state @last_state.setter def last_state(self, last_state): """ Sets the last_state of this V1ContainerStatus. Details about the container's last termination condition. :param last_state: The last_state of this V1ContainerStatus. :type: V1ContainerState """ self._last_state = last_state @property def ready(self): """ Gets the ready of this V1ContainerStatus. Specifies whether the container has passed its readiness probe. :return: The ready of this V1ContainerStatus. :rtype: bool """ return self._ready @ready.setter def ready(self, ready): """ Sets the ready of this V1ContainerStatus. Specifies whether the container has passed its readiness probe. :param ready: The ready of this V1ContainerStatus. :type: bool """ self._ready = ready @property def restart_count(self): """ Gets the restart_count of this V1ContainerStatus. The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. :return: The restart_count of this V1ContainerStatus. :rtype: int """ return self._restart_count @restart_count.setter def restart_count(self, restart_count): """ Sets the restart_count of this V1ContainerStatus. The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. :param restart_count: The restart_count of this V1ContainerStatus. :type: int """ self._restart_count = restart_count @property def image(self): """ Gets the image of this V1ContainerStatus. The image the container is running. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md :return: The image of this V1ContainerStatus. :rtype: str """ return self._image @image.setter def image(self, image): """ Sets the image of this V1ContainerStatus. The image the container is running. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md :param image: The image of this V1ContainerStatus. :type: str """ self._image = image @property def image_id(self): """ Gets the image_id of this V1ContainerStatus. ImageID of the container's image. :return: The image_id of this V1ContainerStatus. :rtype: str """ return self._image_id @image_id.setter def image_id(self, image_id): """ Sets the image_id of this V1ContainerStatus. ImageID of the container's image. :param image_id: The image_id of this V1ContainerStatus. :type: str """ self._image_id = image_id @property def container_id(self): """ Gets the container_id of this V1ContainerStatus. Container's ID in the format 'docker://'. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#container-information :return: The container_id of this V1ContainerStatus. :rtype: str """ return self._container_id @container_id.setter def container_id(self, container_id): """ Sets the container_id of this V1ContainerStatus. Container's ID in the format 'docker://'. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#container-information :param container_id: The container_id of this V1ContainerStatus. :type: str """ self._container_id = container_id def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_gce_persistent_disk_volume_source.py0000664000567000056710000001501313046233226032524 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1GCEPersistentDiskVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'pd_name': 'str', 'fs_type': 'str', 'partition': 'int', 'read_only': 'bool' } self.attribute_map = { 'pd_name': 'pdName', 'fs_type': 'fsType', 'partition': 'partition', 'read_only': 'readOnly' } self._pd_name = None self._fs_type = None self._partition = None self._read_only = None @property def pd_name(self): """ Gets the pd_name of this V1GCEPersistentDiskVolumeSource. Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :return: The pd_name of this V1GCEPersistentDiskVolumeSource. :rtype: str """ return self._pd_name @pd_name.setter def pd_name(self, pd_name): """ Sets the pd_name of this V1GCEPersistentDiskVolumeSource. Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :param pd_name: The pd_name of this V1GCEPersistentDiskVolumeSource. :type: str """ self._pd_name = pd_name @property def fs_type(self): """ Gets the fs_type of this V1GCEPersistentDiskVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :return: The fs_type of this V1GCEPersistentDiskVolumeSource. :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): """ Sets the fs_type of this V1GCEPersistentDiskVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :param fs_type: The fs_type of this V1GCEPersistentDiskVolumeSource. :type: str """ self._fs_type = fs_type @property def partition(self): """ Gets the partition of this V1GCEPersistentDiskVolumeSource. The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :return: The partition of this V1GCEPersistentDiskVolumeSource. :rtype: int """ return self._partition @partition.setter def partition(self, partition): """ Sets the partition of this V1GCEPersistentDiskVolumeSource. The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :param partition: The partition of this V1GCEPersistentDiskVolumeSource. :type: int """ self._partition = partition @property def read_only(self): """ Gets the read_only of this V1GCEPersistentDiskVolumeSource. ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :return: The read_only of this V1GCEPersistentDiskVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1GCEPersistentDiskVolumeSource. ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :param read_only: The read_only of this V1GCEPersistentDiskVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_service.py0000664000567000056710000001507413046233226025174 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Service(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1ServiceSpec', 'status': 'V1ServiceStatus' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status' } self._kind = None self._api_version = None self._metadata = None self._spec = None self._status = None @property def kind(self): """ Gets the kind of this V1Service. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1Service. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1Service. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1Service. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1Service. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1Service. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1Service. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1Service. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1Service. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1Service. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1Service. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1Service. :type: V1ObjectMeta """ self._metadata = metadata @property def spec(self): """ Gets the spec of this V1Service. Spec defines the behavior of a service. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V1Service. :rtype: V1ServiceSpec """ return self._spec @spec.setter def spec(self, spec): """ Sets the spec of this V1Service. Spec defines the behavior of a service. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V1Service. :type: V1ServiceSpec """ self._spec = spec @property def status(self): """ Gets the status of this V1Service. Most recently observed status of the service. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The status of this V1Service. :rtype: V1ServiceStatus """ return self._status @status.setter def status(self, status): """ Sets the status of this V1Service. Most recently observed status of the service. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param status: The status of this V1Service. :type: V1ServiceStatus """ self._status = status def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/integer.py0000664000567000056710000000403313046233226024554 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class Integer(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { } self.attribute_map = { } def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_namespace_status.py0000664000567000056710000000546213046233226027073 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1NamespaceStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'phase': 'str' } self.attribute_map = { 'phase': 'phase' } self._phase = None @property def phase(self): """ Gets the phase of this V1NamespaceStatus. Phase is the current lifecycle phase of the namespace. More info: http://releases.k8s.io/release-1.2/docs/design/namespaces.md#phases :return: The phase of this V1NamespaceStatus. :rtype: str """ return self._phase @phase.setter def phase(self, phase): """ Sets the phase of this V1NamespaceStatus. Phase is the current lifecycle phase of the namespace. More info: http://releases.k8s.io/release-1.2/docs/design/namespaces.md#phases :param phase: The phase of this V1NamespaceStatus. :type: str """ self._phase = phase def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_replication_controller_spec.py0000664000567000056710000001322113046233226031312 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ReplicationControllerSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'replicas': 'int', 'selector': 'object', 'template': 'V1PodTemplateSpec' } self.attribute_map = { 'replicas': 'replicas', 'selector': 'selector', 'template': 'template' } self._replicas = None self._selector = None self._template = None @property def replicas(self): """ Gets the replicas of this V1ReplicationControllerSpec. Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#what-is-a-replication-controller :return: The replicas of this V1ReplicationControllerSpec. :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): """ Sets the replicas of this V1ReplicationControllerSpec. Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#what-is-a-replication-controller :param replicas: The replicas of this V1ReplicationControllerSpec. :type: int """ self._replicas = replicas @property def selector(self): """ Gets the selector of this V1ReplicationControllerSpec. Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: http://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors :return: The selector of this V1ReplicationControllerSpec. :rtype: object """ return self._selector @selector.setter def selector(self, selector): """ Sets the selector of this V1ReplicationControllerSpec. Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: http://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors :param selector: The selector of this V1ReplicationControllerSpec. :type: object """ self._selector = selector @property def template(self): """ Gets the template of this V1ReplicationControllerSpec. Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#pod-template :return: The template of this V1ReplicationControllerSpec. :rtype: V1PodTemplateSpec """ return self._template @template.setter def template(self, template): """ Sets the template of this V1ReplicationControllerSpec. Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#pod-template :param template: The template of this V1ReplicationControllerSpec. :type: V1PodTemplateSpec """ self._template = template def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_config_map_volume_source.py0000664000567000056710000001036113046233226030577 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ConfigMapVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'items': 'list[V1KeyToPath]' } self.attribute_map = { 'name': 'name', 'items': 'items' } self._name = None self._items = None @property def name(self): """ Gets the name of this V1ConfigMapVolumeSource. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :return: The name of this V1ConfigMapVolumeSource. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1ConfigMapVolumeSource. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1ConfigMapVolumeSource. :type: str """ self._name = name @property def items(self): """ Gets the items of this V1ConfigMapVolumeSource. If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'. :return: The items of this V1ConfigMapVolumeSource. :rtype: list[V1KeyToPath] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1ConfigMapVolumeSource. If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'. :param items: The items of this V1ConfigMapVolumeSource. :type: list[V1KeyToPath] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_event_source.py0000664000567000056710000000637713046233226026243 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1EventSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'component': 'str', 'host': 'str' } self.attribute_map = { 'component': 'component', 'host': 'host' } self._component = None self._host = None @property def component(self): """ Gets the component of this V1EventSource. Component from which the event is generated. :return: The component of this V1EventSource. :rtype: str """ return self._component @component.setter def component(self, component): """ Sets the component of this V1EventSource. Component from which the event is generated. :param component: The component of this V1EventSource. :type: str """ self._component = component @property def host(self): """ Gets the host of this V1EventSource. Host name on which the event is generated. :return: The host of this V1EventSource. :rtype: str """ return self._host @host.setter def host(self, host): """ Sets the host of this V1EventSource. Host name on which the event is generated. :param host: The host of this V1EventSource. :type: str """ self._host = host def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/unversioned_status.py0000664000567000056710000002230313046233226027063 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class UnversionedStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'status': 'str', 'message': 'str', 'reason': 'str', 'details': 'UnversionedStatusDetails', 'code': 'int' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'status': 'status', 'message': 'message', 'reason': 'reason', 'details': 'details', 'code': 'code' } self._kind = None self._api_version = None self._metadata = None self._status = None self._message = None self._reason = None self._details = None self._code = None @property def kind(self): """ Gets the kind of this UnversionedStatus. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this UnversionedStatus. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this UnversionedStatus. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this UnversionedStatus. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this UnversionedStatus. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this UnversionedStatus. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this UnversionedStatus. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this UnversionedStatus. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this UnversionedStatus. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this UnversionedStatus. :rtype: UnversionedListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this UnversionedStatus. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this UnversionedStatus. :type: UnversionedListMeta """ self._metadata = metadata @property def status(self): """ Gets the status of this UnversionedStatus. Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The status of this UnversionedStatus. :rtype: str """ return self._status @status.setter def status(self, status): """ Sets the status of this UnversionedStatus. Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param status: The status of this UnversionedStatus. :type: str """ self._status = status @property def message(self): """ Gets the message of this UnversionedStatus. A human-readable description of the status of this operation. :return: The message of this UnversionedStatus. :rtype: str """ return self._message @message.setter def message(self, message): """ Sets the message of this UnversionedStatus. A human-readable description of the status of this operation. :param message: The message of this UnversionedStatus. :type: str """ self._message = message @property def reason(self): """ Gets the reason of this UnversionedStatus. A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. :return: The reason of this UnversionedStatus. :rtype: str """ return self._reason @reason.setter def reason(self, reason): """ Sets the reason of this UnversionedStatus. A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. :param reason: The reason of this UnversionedStatus. :type: str """ self._reason = reason @property def details(self): """ Gets the details of this UnversionedStatus. Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. :return: The details of this UnversionedStatus. :rtype: UnversionedStatusDetails """ return self._details @details.setter def details(self, details): """ Sets the details of this UnversionedStatus. Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. :param details: The details of this UnversionedStatus. :type: UnversionedStatusDetails """ self._details = details @property def code(self): """ Gets the code of this UnversionedStatus. Suggested HTTP return code for this status, 0 if not set. :return: The code of this UnversionedStatus. :rtype: int """ return self._code @code.setter def code(self, code): """ Sets the code of this UnversionedStatus. Suggested HTTP return code for this status, 0 if not set. :param code: The code of this UnversionedStatus. :type: int """ self._code = code def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_finalizer_name.py0000664000567000056710000000404313046233226026511 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1FinalizerName(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { } self.attribute_map = { } def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_pod_list.py0000664000567000056710000001320213046233226025340 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PodList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'items': 'list[V1Pod]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'items': 'items' } self._kind = None self._api_version = None self._metadata = None self._items = None @property def kind(self): """ Gets the kind of this V1PodList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1PodList. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1PodList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1PodList. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1PodList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1PodList. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1PodList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1PodList. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1PodList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1PodList. :rtype: UnversionedListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1PodList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1PodList. :type: UnversionedListMeta """ self._metadata = metadata @property def items(self): """ Gets the items of this V1PodList. List of pods. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pods.md :return: The items of this V1PodList. :rtype: list[V1Pod] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1PodList. List of pods. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pods.md :param items: The items of this V1PodList. :type: list[V1Pod] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_resource_quota.py0000664000567000056710000001522413046233226026571 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ResourceQuota(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1ResourceQuotaSpec', 'status': 'V1ResourceQuotaStatus' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status' } self._kind = None self._api_version = None self._metadata = None self._spec = None self._status = None @property def kind(self): """ Gets the kind of this V1ResourceQuota. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1ResourceQuota. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1ResourceQuota. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1ResourceQuota. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1ResourceQuota. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1ResourceQuota. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1ResourceQuota. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1ResourceQuota. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1ResourceQuota. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1ResourceQuota. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1ResourceQuota. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1ResourceQuota. :type: V1ObjectMeta """ self._metadata = metadata @property def spec(self): """ Gets the spec of this V1ResourceQuota. Spec defines the desired quota. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V1ResourceQuota. :rtype: V1ResourceQuotaSpec """ return self._spec @spec.setter def spec(self, spec): """ Sets the spec of this V1ResourceQuota. Spec defines the desired quota. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V1ResourceQuota. :type: V1ResourceQuotaSpec """ self._spec = spec @property def status(self): """ Gets the status of this V1ResourceQuota. Status defines the actual enforced quota and its current usage. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The status of this V1ResourceQuota. :rtype: V1ResourceQuotaStatus """ return self._status @status.setter def status(self, status): """ Sets the status of this V1ResourceQuota. Status defines the actual enforced quota and its current usage. http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param status: The status of this V1ResourceQuota. :type: V1ResourceQuotaStatus """ self._status = status def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/unversioned_list_meta.py0000664000567000056710000001030513046233226027520 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class UnversionedListMeta(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'self_link': 'str', 'resource_version': 'str' } self.attribute_map = { 'self_link': 'selfLink', 'resource_version': 'resourceVersion' } self._self_link = None self._resource_version = None @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 @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/release-1.2/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/release-1.2/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 def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_persistent_volume_spec.py0000664000567000056710000004703213046233226030334 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PersistentVolumeSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'capacity': 'object', 'gce_persistent_disk': 'V1GCEPersistentDiskVolumeSource', 'aws_elastic_block_store': 'V1AWSElasticBlockStoreVolumeSource', 'host_path': 'V1HostPathVolumeSource', 'glusterfs': 'V1GlusterfsVolumeSource', 'nfs': 'V1NFSVolumeSource', 'rbd': 'V1RBDVolumeSource', 'iscsi': 'V1ISCSIVolumeSource', 'cinder': 'V1CinderVolumeSource', 'cephfs': 'V1CephFSVolumeSource', 'fc': 'V1FCVolumeSource', 'flocker': 'V1FlockerVolumeSource', 'flex_volume': 'V1FlexVolumeSource', 'azure_file': 'V1AzureFileVolumeSource', 'access_modes': 'list[V1PersistentVolumeAccessMode]', 'claim_ref': 'V1ObjectReference', 'persistent_volume_reclaim_policy': 'str' } self.attribute_map = { 'capacity': 'capacity', 'gce_persistent_disk': 'gcePersistentDisk', 'aws_elastic_block_store': 'awsElasticBlockStore', 'host_path': 'hostPath', 'glusterfs': 'glusterfs', 'nfs': 'nfs', 'rbd': 'rbd', 'iscsi': 'iscsi', 'cinder': 'cinder', 'cephfs': 'cephfs', 'fc': 'fc', 'flocker': 'flocker', 'flex_volume': 'flexVolume', 'azure_file': 'azureFile', 'access_modes': 'accessModes', 'claim_ref': 'claimRef', 'persistent_volume_reclaim_policy': 'persistentVolumeReclaimPolicy' } self._capacity = None self._gce_persistent_disk = None self._aws_elastic_block_store = None self._host_path = None self._glusterfs = None self._nfs = None self._rbd = None self._iscsi = None self._cinder = None self._cephfs = None self._fc = None self._flocker = None self._flex_volume = None self._azure_file = None self._access_modes = None self._claim_ref = None self._persistent_volume_reclaim_policy = None @property def capacity(self): """ Gets the capacity of this V1PersistentVolumeSpec. A description of the persistent volume's resources and capacity. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#capacity :return: The capacity of this V1PersistentVolumeSpec. :rtype: object """ return self._capacity @capacity.setter def capacity(self, capacity): """ Sets the capacity of this V1PersistentVolumeSpec. A description of the persistent volume's resources and capacity. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#capacity :param capacity: The capacity of this V1PersistentVolumeSpec. :type: object """ self._capacity = capacity @property def gce_persistent_disk(self): """ Gets the gce_persistent_disk of this V1PersistentVolumeSpec. GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :return: The gce_persistent_disk of this V1PersistentVolumeSpec. :rtype: V1GCEPersistentDiskVolumeSource """ return self._gce_persistent_disk @gce_persistent_disk.setter def gce_persistent_disk(self, gce_persistent_disk): """ Sets the gce_persistent_disk of this V1PersistentVolumeSpec. GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :param gce_persistent_disk: The gce_persistent_disk of this V1PersistentVolumeSpec. :type: V1GCEPersistentDiskVolumeSource """ self._gce_persistent_disk = gce_persistent_disk @property def aws_elastic_block_store(self): """ Gets the aws_elastic_block_store of this V1PersistentVolumeSpec. AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :return: The aws_elastic_block_store of this V1PersistentVolumeSpec. :rtype: V1AWSElasticBlockStoreVolumeSource """ return self._aws_elastic_block_store @aws_elastic_block_store.setter def aws_elastic_block_store(self, aws_elastic_block_store): """ Sets the aws_elastic_block_store of this V1PersistentVolumeSpec. AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :param aws_elastic_block_store: The aws_elastic_block_store of this V1PersistentVolumeSpec. :type: V1AWSElasticBlockStoreVolumeSource """ self._aws_elastic_block_store = aws_elastic_block_store @property def host_path(self): """ Gets the host_path of this V1PersistentVolumeSpec. HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath :return: The host_path of this V1PersistentVolumeSpec. :rtype: V1HostPathVolumeSource """ return self._host_path @host_path.setter def host_path(self, host_path): """ Sets the host_path of this V1PersistentVolumeSpec. HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath :param host_path: The host_path of this V1PersistentVolumeSpec. :type: V1HostPathVolumeSource """ self._host_path = host_path @property def glusterfs(self): """ Gets the glusterfs of this V1PersistentVolumeSpec. Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md :return: The glusterfs of this V1PersistentVolumeSpec. :rtype: V1GlusterfsVolumeSource """ return self._glusterfs @glusterfs.setter def glusterfs(self, glusterfs): """ Sets the glusterfs of this V1PersistentVolumeSpec. Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md :param glusterfs: The glusterfs of this V1PersistentVolumeSpec. :type: V1GlusterfsVolumeSource """ self._glusterfs = glusterfs @property def nfs(self): """ Gets the nfs of this V1PersistentVolumeSpec. NFS represents an NFS mount on the host. Provisioned by an admin. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :return: The nfs of this V1PersistentVolumeSpec. :rtype: V1NFSVolumeSource """ return self._nfs @nfs.setter def nfs(self, nfs): """ Sets the nfs of this V1PersistentVolumeSpec. NFS represents an NFS mount on the host. Provisioned by an admin. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :param nfs: The nfs of this V1PersistentVolumeSpec. :type: V1NFSVolumeSource """ self._nfs = nfs @property def rbd(self): """ Gets the rbd of this V1PersistentVolumeSpec. RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md :return: The rbd of this V1PersistentVolumeSpec. :rtype: V1RBDVolumeSource """ return self._rbd @rbd.setter def rbd(self, rbd): """ Sets the rbd of this V1PersistentVolumeSpec. RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md :param rbd: The rbd of this V1PersistentVolumeSpec. :type: V1RBDVolumeSource """ self._rbd = rbd @property def iscsi(self): """ Gets the iscsi of this V1PersistentVolumeSpec. ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. :return: The iscsi of this V1PersistentVolumeSpec. :rtype: V1ISCSIVolumeSource """ return self._iscsi @iscsi.setter def iscsi(self, iscsi): """ Sets the iscsi of this V1PersistentVolumeSpec. ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. :param iscsi: The iscsi of this V1PersistentVolumeSpec. :type: V1ISCSIVolumeSource """ self._iscsi = iscsi @property def cinder(self): """ Gets the cinder of this V1PersistentVolumeSpec. Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :return: The cinder of this V1PersistentVolumeSpec. :rtype: V1CinderVolumeSource """ return self._cinder @cinder.setter def cinder(self, cinder): """ Sets the cinder of this V1PersistentVolumeSpec. Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :param cinder: The cinder of this V1PersistentVolumeSpec. :type: V1CinderVolumeSource """ self._cinder = cinder @property def cephfs(self): """ Gets the cephfs of this V1PersistentVolumeSpec. CephFS represents a Ceph FS mount on the host that shares a pod's lifetime :return: The cephfs of this V1PersistentVolumeSpec. :rtype: V1CephFSVolumeSource """ return self._cephfs @cephfs.setter def cephfs(self, cephfs): """ Sets the cephfs of this V1PersistentVolumeSpec. CephFS represents a Ceph FS mount on the host that shares a pod's lifetime :param cephfs: The cephfs of this V1PersistentVolumeSpec. :type: V1CephFSVolumeSource """ self._cephfs = cephfs @property def fc(self): """ Gets the fc of this V1PersistentVolumeSpec. FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. :return: The fc of this V1PersistentVolumeSpec. :rtype: V1FCVolumeSource """ return self._fc @fc.setter def fc(self, fc): """ Sets the fc of this V1PersistentVolumeSpec. FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. :param fc: The fc of this V1PersistentVolumeSpec. :type: V1FCVolumeSource """ self._fc = fc @property def flocker(self): """ Gets the flocker of this V1PersistentVolumeSpec. Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running :return: The flocker of this V1PersistentVolumeSpec. :rtype: V1FlockerVolumeSource """ return self._flocker @flocker.setter def flocker(self, flocker): """ Sets the flocker of this V1PersistentVolumeSpec. Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running :param flocker: The flocker of this V1PersistentVolumeSpec. :type: V1FlockerVolumeSource """ self._flocker = flocker @property def flex_volume(self): """ Gets the flex_volume of this V1PersistentVolumeSpec. FlexVolume represents a generic volume resource that is provisioned/attached using a exec based plugin. This is an alpha feature and may change in future. :return: The flex_volume of this V1PersistentVolumeSpec. :rtype: V1FlexVolumeSource """ return self._flex_volume @flex_volume.setter def flex_volume(self, flex_volume): """ Sets the flex_volume of this V1PersistentVolumeSpec. FlexVolume represents a generic volume resource that is provisioned/attached using a exec based plugin. This is an alpha feature and may change in future. :param flex_volume: The flex_volume of this V1PersistentVolumeSpec. :type: V1FlexVolumeSource """ self._flex_volume = flex_volume @property def azure_file(self): """ Gets the azure_file of this V1PersistentVolumeSpec. AzureFile represents an Azure File Service mount on the host and bind mount to the pod. :return: The azure_file of this V1PersistentVolumeSpec. :rtype: V1AzureFileVolumeSource """ return self._azure_file @azure_file.setter def azure_file(self, azure_file): """ Sets the azure_file of this V1PersistentVolumeSpec. AzureFile represents an Azure File Service mount on the host and bind mount to the pod. :param azure_file: The azure_file of this V1PersistentVolumeSpec. :type: V1AzureFileVolumeSource """ self._azure_file = azure_file @property def access_modes(self): """ Gets the access_modes of this V1PersistentVolumeSpec. AccessModes contains all ways the volume can be mounted. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#access-modes :return: The access_modes of this V1PersistentVolumeSpec. :rtype: list[V1PersistentVolumeAccessMode] """ return self._access_modes @access_modes.setter def access_modes(self, access_modes): """ Sets the access_modes of this V1PersistentVolumeSpec. AccessModes contains all ways the volume can be mounted. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#access-modes :param access_modes: The access_modes of this V1PersistentVolumeSpec. :type: list[V1PersistentVolumeAccessMode] """ self._access_modes = access_modes @property def claim_ref(self): """ Gets the claim_ref of this V1PersistentVolumeSpec. ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#binding :return: The claim_ref of this V1PersistentVolumeSpec. :rtype: V1ObjectReference """ return self._claim_ref @claim_ref.setter def claim_ref(self, claim_ref): """ Sets the claim_ref of this V1PersistentVolumeSpec. ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#binding :param claim_ref: The claim_ref of this V1PersistentVolumeSpec. :type: V1ObjectReference """ self._claim_ref = claim_ref @property def persistent_volume_reclaim_policy(self): """ Gets the persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. What happens to a persistent volume when released from its claim. Valid options are Retain (default) and Recycle. Recyling must be supported by the volume plugin underlying this persistent volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#recycling-policy :return: The persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. :rtype: str """ return self._persistent_volume_reclaim_policy @persistent_volume_reclaim_policy.setter def persistent_volume_reclaim_policy(self, persistent_volume_reclaim_policy): """ Sets the persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. What happens to a persistent volume when released from its claim. Valid options are Retain (default) and Recycle. Recyling must be supported by the volume plugin underlying this persistent volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#recycling-policy :param persistent_volume_reclaim_policy: The persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. :type: str """ self._persistent_volume_reclaim_policy = persistent_volume_reclaim_policy def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_http_get_action.py0000664000567000056710000001300413046233226026676 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1HTTPGetAction(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'path': 'str', 'port': 'str', 'host': 'str', 'scheme': 'str', 'http_headers': 'list[V1HTTPHeader]' } self.attribute_map = { 'path': 'path', 'port': 'port', 'host': 'host', 'scheme': 'scheme', 'http_headers': 'httpHeaders' } self._path = None self._port = None self._host = None self._scheme = None self._http_headers = None @property def path(self): """ Gets the path of this V1HTTPGetAction. Path to access on the HTTP server. :return: The path of this V1HTTPGetAction. :rtype: str """ return self._path @path.setter def path(self, path): """ Sets the path of this V1HTTPGetAction. Path to access on the HTTP server. :param path: The path of this V1HTTPGetAction. :type: str """ self._path = path @property def port(self): """ Gets the port of this V1HTTPGetAction. Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. :return: The port of this V1HTTPGetAction. :rtype: str """ return self._port @port.setter def port(self, port): """ Sets the port of this V1HTTPGetAction. Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. :param port: The port of this V1HTTPGetAction. :type: str """ self._port = port @property def host(self): """ Gets the host of this V1HTTPGetAction. Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. :return: The host of this V1HTTPGetAction. :rtype: str """ return self._host @host.setter def host(self, host): """ Sets the host of this V1HTTPGetAction. Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. :param host: The host of this V1HTTPGetAction. :type: str """ self._host = host @property def scheme(self): """ Gets the scheme of this V1HTTPGetAction. Scheme to use for connecting to the host. Defaults to HTTP. :return: The scheme of this V1HTTPGetAction. :rtype: str """ return self._scheme @scheme.setter def scheme(self, scheme): """ Sets the scheme of this V1HTTPGetAction. Scheme to use for connecting to the host. Defaults to HTTP. :param scheme: The scheme of this V1HTTPGetAction. :type: str """ self._scheme = scheme @property def http_headers(self): """ Gets the http_headers of this V1HTTPGetAction. Custom headers to set in the request. HTTP allows repeated headers. :return: The http_headers of this V1HTTPGetAction. :rtype: list[V1HTTPHeader] """ return self._http_headers @http_headers.setter def http_headers(self, http_headers): """ Sets the http_headers of this V1HTTPGetAction. Custom headers to set in the request. HTTP allows repeated headers. :param http_headers: The http_headers of this V1HTTPGetAction. :type: list[V1HTTPHeader] """ self._http_headers = http_headers def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_empty_dir_volume_source.py0000664000567000056710000000610113046233226030466 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1EmptyDirVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'medium': 'str' } self.attribute_map = { 'medium': 'medium' } self._medium = None @property def medium(self): """ Gets the medium of this V1EmptyDirVolumeSource. What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir :return: The medium of this V1EmptyDirVolumeSource. :rtype: str """ return self._medium @medium.setter def medium(self, medium): """ Sets the medium of this V1EmptyDirVolumeSource. What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir :param medium: The medium of this V1EmptyDirVolumeSource. :type: str """ self._medium = medium def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_pod_status.py0000664000567000056710000002072213046233226025715 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PodStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'phase': 'str', 'conditions': 'list[V1PodCondition]', 'message': 'str', 'reason': 'str', 'host_ip': 'str', 'pod_ip': 'str', 'start_time': 'str', 'container_statuses': 'list[V1ContainerStatus]' } self.attribute_map = { 'phase': 'phase', 'conditions': 'conditions', 'message': 'message', 'reason': 'reason', 'host_ip': 'hostIP', 'pod_ip': 'podIP', 'start_time': 'startTime', 'container_statuses': 'containerStatuses' } self._phase = None self._conditions = None self._message = None self._reason = None self._host_ip = None self._pod_ip = None self._start_time = None self._container_statuses = None @property def phase(self): """ Gets the phase of this V1PodStatus. Current condition of the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-phase :return: The phase of this V1PodStatus. :rtype: str """ return self._phase @phase.setter def phase(self, phase): """ Sets the phase of this V1PodStatus. Current condition of the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-phase :param phase: The phase of this V1PodStatus. :type: str """ self._phase = phase @property def conditions(self): """ Gets the conditions of this V1PodStatus. Current service state of pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-conditions :return: The conditions of this V1PodStatus. :rtype: list[V1PodCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): """ Sets the conditions of this V1PodStatus. Current service state of pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#pod-conditions :param conditions: The conditions of this V1PodStatus. :type: list[V1PodCondition] """ self._conditions = conditions @property def message(self): """ Gets the message of this V1PodStatus. A human readable message indicating details about why the pod is in this condition. :return: The message of this V1PodStatus. :rtype: str """ return self._message @message.setter def message(self, message): """ Sets the message of this V1PodStatus. A human readable message indicating details about why the pod is in this condition. :param message: The message of this V1PodStatus. :type: str """ self._message = message @property def reason(self): """ Gets the reason of this V1PodStatus. A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk' :return: The reason of this V1PodStatus. :rtype: str """ return self._reason @reason.setter def reason(self, reason): """ Sets the reason of this V1PodStatus. A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk' :param reason: The reason of this V1PodStatus. :type: str """ self._reason = reason @property def host_ip(self): """ Gets the host_ip of this V1PodStatus. IP address of the host to which the pod is assigned. Empty if not yet scheduled. :return: The host_ip of this V1PodStatus. :rtype: str """ return self._host_ip @host_ip.setter def host_ip(self, host_ip): """ Sets the host_ip of this V1PodStatus. IP address of the host to which the pod is assigned. Empty if not yet scheduled. :param host_ip: The host_ip of this V1PodStatus. :type: str """ self._host_ip = host_ip @property def pod_ip(self): """ Gets the pod_ip of this V1PodStatus. IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. :return: The pod_ip of this V1PodStatus. :rtype: str """ return self._pod_ip @pod_ip.setter def pod_ip(self, pod_ip): """ Sets the pod_ip of this V1PodStatus. IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. :param pod_ip: The pod_ip of this V1PodStatus. :type: str """ self._pod_ip = pod_ip @property def start_time(self): """ Gets the start_time of this V1PodStatus. RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. :return: The start_time of this V1PodStatus. :rtype: str """ return self._start_time @start_time.setter def start_time(self, start_time): """ Sets the start_time of this V1PodStatus. RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. :param start_time: The start_time of this V1PodStatus. :type: str """ self._start_time = start_time @property def container_statuses(self): """ Gets the container_statuses of this V1PodStatus. The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-statuses :return: The container_statuses of this V1PodStatus. :rtype: list[V1ContainerStatus] """ return self._container_statuses @container_statuses.setter def container_statuses(self, container_statuses): """ Sets the container_statuses of this V1PodStatus. The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-statuses :param container_statuses: The container_statuses of this V1PodStatus. :type: list[V1ContainerStatus] """ self._container_statuses = container_statuses def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_lifecycle.py0000664000567000056710000001121113046233226025460 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Lifecycle(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'post_start': 'V1Handler', 'pre_stop': 'V1Handler' } self.attribute_map = { 'post_start': 'postStart', 'pre_stop': 'preStop' } self._post_start = None self._pre_stop = None @property def post_start(self): """ Gets the post_start of this V1Lifecycle. PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details :return: The post_start of this V1Lifecycle. :rtype: V1Handler """ return self._post_start @post_start.setter def post_start(self, post_start): """ Sets the post_start of this V1Lifecycle. PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details :param post_start: The post_start of this V1Lifecycle. :type: V1Handler """ self._post_start = post_start @property def pre_stop(self): """ Gets the pre_stop of this V1Lifecycle. PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details :return: The pre_stop of this V1Lifecycle. :rtype: V1Handler """ return self._pre_stop @pre_stop.setter def pre_stop(self, pre_stop): """ Sets the pre_stop of this V1Lifecycle. PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details :param pre_stop: The pre_stop of this V1Lifecycle. :type: V1Handler """ self._pre_stop = pre_stop def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_handler.py0000664000567000056710000001022013046233226025135 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Handler(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { '_exec': 'V1ExecAction', 'http_get': 'V1HTTPGetAction', 'tcp_socket': 'V1TCPSocketAction' } self.attribute_map = { '_exec': 'exec', 'http_get': 'httpGet', 'tcp_socket': 'tcpSocket' } self.__exec = None self._http_get = None self._tcp_socket = None @property def _exec(self): """ Gets the _exec of this V1Handler. One and only one of the following should be specified. Exec specifies the action to take. :return: The _exec of this V1Handler. :rtype: V1ExecAction """ return self.__exec @_exec.setter def _exec(self, _exec): """ Sets the _exec of this V1Handler. One and only one of the following should be specified. Exec specifies the action to take. :param _exec: The _exec of this V1Handler. :type: V1ExecAction """ self.__exec = _exec @property def http_get(self): """ Gets the http_get of this V1Handler. HTTPGet specifies the http request to perform. :return: The http_get of this V1Handler. :rtype: V1HTTPGetAction """ return self._http_get @http_get.setter def http_get(self, http_get): """ Sets the http_get of this V1Handler. HTTPGet specifies the http request to perform. :param http_get: The http_get of this V1Handler. :type: V1HTTPGetAction """ self._http_get = http_get @property def tcp_socket(self): """ Gets the tcp_socket of this V1Handler. TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported :return: The tcp_socket of this V1Handler. :rtype: V1TCPSocketAction """ return self._tcp_socket @tcp_socket.setter def tcp_socket(self, tcp_socket): """ Sets the tcp_socket of this V1Handler. TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported :param tcp_socket: The tcp_socket of this V1Handler. :type: V1TCPSocketAction """ self._tcp_socket = tcp_socket def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_config_map_key_selector.py0000664000567000056710000000647013046233226030406 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ConfigMapKeySelector(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'key': 'str' } self.attribute_map = { 'name': 'name', 'key': 'key' } self._name = None self._key = None @property def name(self): """ Gets the name of this V1ConfigMapKeySelector. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :return: The name of this V1ConfigMapKeySelector. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1ConfigMapKeySelector. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1ConfigMapKeySelector. :type: str """ self._name = name @property def key(self): """ Gets the key of this V1ConfigMapKeySelector. The key to select. :return: The key of this V1ConfigMapKeySelector. :rtype: str """ return self._key @key.setter def key(self, key): """ Sets the key of this V1ConfigMapKeySelector. The key to select. :param key: The key of this V1ConfigMapKeySelector. :type: str """ self._key = key def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_host_path_volume_source.py0000664000567000056710000000543113046233226030470 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1HostPathVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'path': 'str' } self.attribute_map = { 'path': 'path' } self._path = None @property def path(self): """ Gets the path of this V1HostPathVolumeSource. Path of the directory on the host. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath :return: The path of this V1HostPathVolumeSource. :rtype: str """ return self._path @path.setter def path(self, path): """ Sets the path of this V1HostPathVolumeSource. Path of the directory on the host. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath :param path: The path of this V1HostPathVolumeSource. :type: str """ self._path = path def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_event_list.py0000664000567000056710000001304013046233226025677 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1EventList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'items': 'list[V1Event]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'items': 'items' } self._kind = None self._api_version = None self._metadata = None self._items = None @property def kind(self): """ Gets the kind of this V1EventList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1EventList. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1EventList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1EventList. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1EventList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1EventList. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1EventList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1EventList. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1EventList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1EventList. :rtype: UnversionedListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1EventList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1EventList. :type: UnversionedListMeta """ self._metadata = metadata @property def items(self): """ Gets the items of this V1EventList. List of events :return: The items of this V1EventList. :rtype: list[V1Event] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1EventList. List of events :param items: The items of this V1EventList. :type: list[V1Event] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_persistent_volume_claim_status.py0000664000567000056710000001111713046233226032065 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PersistentVolumeClaimStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'phase': 'str', 'access_modes': 'list[V1PersistentVolumeAccessMode]', 'capacity': 'object' } self.attribute_map = { 'phase': 'phase', 'access_modes': 'accessModes', 'capacity': 'capacity' } self._phase = None self._access_modes = None self._capacity = None @property def phase(self): """ Gets the phase of this V1PersistentVolumeClaimStatus. Phase represents the current phase of PersistentVolumeClaim. :return: The phase of this V1PersistentVolumeClaimStatus. :rtype: str """ return self._phase @phase.setter def phase(self, phase): """ Sets the phase of this V1PersistentVolumeClaimStatus. Phase represents the current phase of PersistentVolumeClaim. :param phase: The phase of this V1PersistentVolumeClaimStatus. :type: str """ self._phase = phase @property def access_modes(self): """ Gets the access_modes of this V1PersistentVolumeClaimStatus. AccessModes contains the actual access modes the volume backing the PVC has. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#access-modes-1 :return: The access_modes of this V1PersistentVolumeClaimStatus. :rtype: list[V1PersistentVolumeAccessMode] """ return self._access_modes @access_modes.setter def access_modes(self, access_modes): """ Sets the access_modes of this V1PersistentVolumeClaimStatus. AccessModes contains the actual access modes the volume backing the PVC has. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#access-modes-1 :param access_modes: The access_modes of this V1PersistentVolumeClaimStatus. :type: list[V1PersistentVolumeAccessMode] """ self._access_modes = access_modes @property def capacity(self): """ Gets the capacity of this V1PersistentVolumeClaimStatus. Represents the actual resources of the underlying volume. :return: The capacity of this V1PersistentVolumeClaimStatus. :rtype: object """ return self._capacity @capacity.setter def capacity(self, capacity): """ Sets the capacity of this V1PersistentVolumeClaimStatus. Represents the actual resources of the underlying volume. :param capacity: The capacity of this V1PersistentVolumeClaimStatus. :type: object """ self._capacity = capacity def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_limit_range.py0000664000567000056710000001336513046233226026027 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1LimitRange(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1LimitRangeSpec' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'spec': 'spec' } self._kind = None self._api_version = None self._metadata = None self._spec = None @property def kind(self): """ Gets the kind of this V1LimitRange. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1LimitRange. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1LimitRange. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1LimitRange. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1LimitRange. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1LimitRange. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1LimitRange. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1LimitRange. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1LimitRange. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1LimitRange. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1LimitRange. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1LimitRange. :type: V1ObjectMeta """ self._metadata = metadata @property def spec(self): """ Gets the spec of this V1LimitRange. Spec defines the limits enforced. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V1LimitRange. :rtype: V1LimitRangeSpec """ return self._spec @spec.setter def spec(self, spec): """ Sets the spec of this V1LimitRange. Spec defines the limits enforced. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V1LimitRange. :type: V1LimitRangeSpec """ self._spec = spec def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_node_status.py0000664000567000056710000002123213046233226026055 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1NodeStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'capacity': 'object', 'allocatable': 'object', 'phase': 'str', 'conditions': 'list[V1NodeCondition]', 'addresses': 'list[V1NodeAddress]', 'daemon_endpoints': 'V1NodeDaemonEndpoints', 'node_info': 'V1NodeSystemInfo', 'images': 'list[V1ContainerImage]' } self.attribute_map = { 'capacity': 'capacity', 'allocatable': 'allocatable', 'phase': 'phase', 'conditions': 'conditions', 'addresses': 'addresses', 'daemon_endpoints': 'daemonEndpoints', 'node_info': 'nodeInfo', 'images': 'images' } self._capacity = None self._allocatable = None self._phase = None self._conditions = None self._addresses = None self._daemon_endpoints = None self._node_info = None self._images = None @property def capacity(self): """ Gets the capacity of this V1NodeStatus. Capacity represents the total resources of a node. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#capacity for more details. :return: The capacity of this V1NodeStatus. :rtype: object """ return self._capacity @capacity.setter def capacity(self, capacity): """ Sets the capacity of this V1NodeStatus. Capacity represents the total resources of a node. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#capacity for more details. :param capacity: The capacity of this V1NodeStatus. :type: object """ self._capacity = capacity @property def allocatable(self): """ Gets the allocatable of this V1NodeStatus. Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. :return: The allocatable of this V1NodeStatus. :rtype: object """ return self._allocatable @allocatable.setter def allocatable(self, allocatable): """ Sets the allocatable of this V1NodeStatus. Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. :param allocatable: The allocatable of this V1NodeStatus. :type: object """ self._allocatable = allocatable @property def phase(self): """ Gets the phase of this V1NodeStatus. NodePhase is the recently observed lifecycle phase of the node. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-phase :return: The phase of this V1NodeStatus. :rtype: str """ return self._phase @phase.setter def phase(self, phase): """ Sets the phase of this V1NodeStatus. NodePhase is the recently observed lifecycle phase of the node. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-phase :param phase: The phase of this V1NodeStatus. :type: str """ self._phase = phase @property def conditions(self): """ Gets the conditions of this V1NodeStatus. Conditions is an array of current observed node conditions. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-condition :return: The conditions of this V1NodeStatus. :rtype: list[V1NodeCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): """ Sets the conditions of this V1NodeStatus. Conditions is an array of current observed node conditions. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-condition :param conditions: The conditions of this V1NodeStatus. :type: list[V1NodeCondition] """ self._conditions = conditions @property def addresses(self): """ Gets the addresses of this V1NodeStatus. List of addresses reachable to the node. Queried from cloud provider, if available. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-addresses :return: The addresses of this V1NodeStatus. :rtype: list[V1NodeAddress] """ return self._addresses @addresses.setter def addresses(self, addresses): """ Sets the addresses of this V1NodeStatus. List of addresses reachable to the node. Queried from cloud provider, if available. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-addresses :param addresses: The addresses of this V1NodeStatus. :type: list[V1NodeAddress] """ self._addresses = addresses @property def daemon_endpoints(self): """ Gets the daemon_endpoints of this V1NodeStatus. Endpoints of daemons running on the Node. :return: The daemon_endpoints of this V1NodeStatus. :rtype: V1NodeDaemonEndpoints """ return self._daemon_endpoints @daemon_endpoints.setter def daemon_endpoints(self, daemon_endpoints): """ Sets the daemon_endpoints of this V1NodeStatus. Endpoints of daemons running on the Node. :param daemon_endpoints: The daemon_endpoints of this V1NodeStatus. :type: V1NodeDaemonEndpoints """ self._daemon_endpoints = daemon_endpoints @property def node_info(self): """ Gets the node_info of this V1NodeStatus. Set of ids/uuids to uniquely identify the node. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-info :return: The node_info of this V1NodeStatus. :rtype: V1NodeSystemInfo """ return self._node_info @node_info.setter def node_info(self, node_info): """ Sets the node_info of this V1NodeStatus. Set of ids/uuids to uniquely identify the node. More info: http://releases.k8s.io/release-1.2/docs/admin/node.md#node-info :param node_info: The node_info of this V1NodeStatus. :type: V1NodeSystemInfo """ self._node_info = node_info @property def images(self): """ Gets the images of this V1NodeStatus. List of container images on this node :return: The images of this V1NodeStatus. :rtype: list[V1ContainerImage] """ return self._images @images.setter def images(self, images): """ Sets the images of this V1NodeStatus. List of container images on this node :param images: The images of this V1NodeStatus. :type: list[V1ContainerImage] """ self._images = images def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/0000775000567000056710000000000013046233470025740 5ustar jenkinsjenkins00000000000000python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_key_to_path.py0000664000567000056710000000646713046233226031242 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1KeyToPath(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'key': 'str', 'path': 'str' } self.attribute_map = { 'key': 'key', 'path': 'path' } self._key = None self._path = None @property def key(self): """ Gets the key of this V1KeyToPath. The key to project. :return: The key of this V1KeyToPath. :rtype: str """ return self._key @key.setter def key(self, key): """ Sets the key of this V1KeyToPath. The key to project. :param key: The key of this V1KeyToPath. :type: str """ self._key = key @property def path(self): """ Gets the path of this V1KeyToPath. The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. :return: The path of this V1KeyToPath. :rtype: str """ return self._path @path.setter def path(self, path): """ Sets the path of this V1KeyToPath. The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. :param path: The path of this V1KeyToPath. :type: str """ self._path = path def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_pod_spec.py0000664000567000056710000004332113046233226030516 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PodSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'volumes': 'list[V1Volume]', 'containers': 'list[V1Container]', 'restart_policy': 'str', 'termination_grace_period_seconds': 'int', 'active_deadline_seconds': 'int', 'dns_policy': 'str', 'node_selector': 'object', 'service_account_name': 'str', 'service_account': 'str', 'node_name': 'str', 'host_network': 'bool', 'host_pid': 'bool', 'host_ipc': 'bool', 'security_context': 'V1PodSecurityContext', 'image_pull_secrets': 'list[V1LocalObjectReference]' } self.attribute_map = { 'volumes': 'volumes', 'containers': 'containers', 'restart_policy': 'restartPolicy', 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', 'active_deadline_seconds': 'activeDeadlineSeconds', 'dns_policy': 'dnsPolicy', 'node_selector': 'nodeSelector', 'service_account_name': 'serviceAccountName', 'service_account': 'serviceAccount', 'node_name': 'nodeName', 'host_network': 'hostNetwork', 'host_pid': 'hostPID', 'host_ipc': 'hostIPC', 'security_context': 'securityContext', 'image_pull_secrets': 'imagePullSecrets' } self._volumes = None self._containers = None self._restart_policy = None self._termination_grace_period_seconds = None self._active_deadline_seconds = None self._dns_policy = None self._node_selector = None self._service_account_name = None self._service_account = None self._node_name = None self._host_network = None self._host_pid = None self._host_ipc = None self._security_context = None self._image_pull_secrets = None @property def volumes(self): """ Gets the volumes of this V1PodSpec. List of volumes that can be mounted by containers belonging to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md :return: The volumes of this V1PodSpec. :rtype: list[V1Volume] """ return self._volumes @volumes.setter def volumes(self, volumes): """ Sets the volumes of this V1PodSpec. List of volumes that can be mounted by containers belonging to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md :param volumes: The volumes of this V1PodSpec. :type: list[V1Volume] """ self._volumes = volumes @property def containers(self): """ Gets the containers of this V1PodSpec. List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md :return: The containers of this V1PodSpec. :rtype: list[V1Container] """ return self._containers @containers.setter def containers(self, containers): """ Sets the containers of this V1PodSpec. List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md :param containers: The containers of this V1PodSpec. :type: list[V1Container] """ self._containers = containers @property def restart_policy(self): """ Gets the restart_policy of this V1PodSpec. Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#restartpolicy :return: The restart_policy of this V1PodSpec. :rtype: str """ return self._restart_policy @restart_policy.setter def restart_policy(self, restart_policy): """ Sets the restart_policy of this V1PodSpec. Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#restartpolicy :param restart_policy: The restart_policy of this V1PodSpec. :type: str """ self._restart_policy = restart_policy @property def termination_grace_period_seconds(self): """ Gets the termination_grace_period_seconds of this V1PodSpec. Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. :return: The termination_grace_period_seconds of this V1PodSpec. :rtype: int """ return self._termination_grace_period_seconds @termination_grace_period_seconds.setter def termination_grace_period_seconds(self, termination_grace_period_seconds): """ Sets the termination_grace_period_seconds of this V1PodSpec. Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. :param termination_grace_period_seconds: The termination_grace_period_seconds of this V1PodSpec. :type: int """ self._termination_grace_period_seconds = termination_grace_period_seconds @property def active_deadline_seconds(self): """ Gets the active_deadline_seconds of this V1PodSpec. Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. :return: The active_deadline_seconds of this V1PodSpec. :rtype: int """ return self._active_deadline_seconds @active_deadline_seconds.setter def active_deadline_seconds(self, active_deadline_seconds): """ Sets the active_deadline_seconds of this V1PodSpec. Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. :param active_deadline_seconds: The active_deadline_seconds of this V1PodSpec. :type: int """ self._active_deadline_seconds = active_deadline_seconds @property def dns_policy(self): """ Gets the dns_policy of this V1PodSpec. 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 """ return self._dns_policy @dns_policy.setter def dns_policy(self, dns_policy): """ Sets the dns_policy of this V1PodSpec. 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 """ self._dns_policy = dns_policy @property def node_selector(self): """ Gets the node_selector of this V1PodSpec. NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: http://releases.k8s.io/release-1.2/docs/user-guide/node-selection/README.md :return: The node_selector of this V1PodSpec. :rtype: object """ return self._node_selector @node_selector.setter def node_selector(self, node_selector): """ Sets the node_selector of this V1PodSpec. NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: http://releases.k8s.io/release-1.2/docs/user-guide/node-selection/README.md :param node_selector: The node_selector of this V1PodSpec. :type: object """ self._node_selector = node_selector @property def service_account_name(self): """ Gets the service_account_name of this V1PodSpec. ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/release-1.2/docs/design/service_accounts.md :return: The service_account_name of this V1PodSpec. :rtype: str """ return self._service_account_name @service_account_name.setter def service_account_name(self, service_account_name): """ Sets the service_account_name of this V1PodSpec. ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/release-1.2/docs/design/service_accounts.md :param service_account_name: The service_account_name of this V1PodSpec. :type: str """ self._service_account_name = service_account_name @property def service_account(self): """ Gets the service_account of this V1PodSpec. DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. :return: The service_account of this V1PodSpec. :rtype: str """ return self._service_account @service_account.setter def service_account(self, service_account): """ Sets the service_account of this V1PodSpec. DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. :param service_account: The service_account of this V1PodSpec. :type: str """ self._service_account = service_account @property def node_name(self): """ Gets the node_name of this V1PodSpec. NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. :return: The node_name of this V1PodSpec. :rtype: str """ return self._node_name @node_name.setter def node_name(self, node_name): """ Sets the node_name of this V1PodSpec. NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. :param node_name: The node_name of this V1PodSpec. :type: str """ self._node_name = node_name @property def host_network(self): """ Gets the host_network of this V1PodSpec. Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. :return: The host_network of this V1PodSpec. :rtype: bool """ return self._host_network @host_network.setter def host_network(self, host_network): """ Sets the host_network of this V1PodSpec. Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. :param host_network: The host_network of this V1PodSpec. :type: bool """ self._host_network = host_network @property def host_pid(self): """ Gets the host_pid of this V1PodSpec. Use the host's pid namespace. Optional: Default to false. :return: The host_pid of this V1PodSpec. :rtype: bool """ return self._host_pid @host_pid.setter def host_pid(self, host_pid): """ Sets the host_pid of this V1PodSpec. Use the host's pid namespace. Optional: Default to false. :param host_pid: The host_pid of this V1PodSpec. :type: bool """ self._host_pid = host_pid @property def host_ipc(self): """ Gets the host_ipc of this V1PodSpec. Use the host's ipc namespace. Optional: Default to false. :return: The host_ipc of this V1PodSpec. :rtype: bool """ return self._host_ipc @host_ipc.setter def host_ipc(self, host_ipc): """ Sets the host_ipc of this V1PodSpec. Use the host's ipc namespace. Optional: Default to false. :param host_ipc: The host_ipc of this V1PodSpec. :type: bool """ self._host_ipc = host_ipc @property def security_context(self): """ Gets the security_context of this V1PodSpec. SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. :return: The security_context of this V1PodSpec. :rtype: V1PodSecurityContext """ return self._security_context @security_context.setter def security_context(self, security_context): """ Sets the security_context of this V1PodSpec. SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. :param security_context: The security_context of this V1PodSpec. :type: V1PodSecurityContext """ self._security_context = security_context @property def image_pull_secrets(self): """ Gets the image_pull_secrets of this V1PodSpec. ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling object of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md#specifying-imagepullsecrets-on-a-pod :return: The image_pull_secrets of this V1PodSpec. :rtype: list[V1LocalObjectReference] """ return self._image_pull_secrets @image_pull_secrets.setter def image_pull_secrets(self, image_pull_secrets): """ Sets the image_pull_secrets of this V1PodSpec. ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling object of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md#specifying-imagepullsecrets-on-a-pod :param image_pull_secrets: The image_pull_secrets of this V1PodSpec. :type: list[V1LocalObjectReference] """ self._image_pull_secrets = image_pull_secrets def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_container.py0000664000567000056710000005173213046233226030711 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Container(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'image': 'str', 'command': 'list[str]', 'args': 'list[str]', 'working_dir': 'str', 'ports': 'list[V1ContainerPort]', 'env': 'list[V1EnvVar]', 'resources': 'V1ResourceRequirements', 'volume_mounts': 'list[V1VolumeMount]', 'liveness_probe': 'V1Probe', 'readiness_probe': 'V1Probe', 'lifecycle': 'V1Lifecycle', 'termination_message_path': 'str', 'image_pull_policy': 'str', 'security_context': 'V1SecurityContext', 'stdin': 'bool', 'stdin_once': 'bool', 'tty': 'bool' } self.attribute_map = { 'name': 'name', 'image': 'image', 'command': 'command', 'args': 'args', 'working_dir': 'workingDir', 'ports': 'ports', 'env': 'env', 'resources': 'resources', 'volume_mounts': 'volumeMounts', 'liveness_probe': 'livenessProbe', 'readiness_probe': 'readinessProbe', 'lifecycle': 'lifecycle', 'termination_message_path': 'terminationMessagePath', 'image_pull_policy': 'imagePullPolicy', 'security_context': 'securityContext', 'stdin': 'stdin', 'stdin_once': 'stdinOnce', 'tty': 'tty' } self._name = None self._image = None self._command = None self._args = None self._working_dir = None self._ports = None self._env = None self._resources = None self._volume_mounts = None self._liveness_probe = None self._readiness_probe = None self._lifecycle = None self._termination_message_path = None self._image_pull_policy = None self._security_context = None self._stdin = None self._stdin_once = None self._tty = None @property def name(self): """ Gets the name of this V1Container. Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. :return: The name of this V1Container. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1Container. Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. :param name: The name of this V1Container. :type: str """ self._name = name @property def image(self): """ Gets the image of this V1Container. Docker image name. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md :return: The image of this V1Container. :rtype: str """ return self._image @image.setter def image(self, image): """ Sets the image of this V1Container. Docker image name. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md :param image: The image of this V1Container. :type: str """ self._image = image @property def command(self): """ Gets the command of this V1Container. Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands :return: The command of this V1Container. :rtype: list[str] """ return self._command @command.setter def command(self, command): """ Sets the command of this V1Container. Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands :param command: The command of this V1Container. :type: list[str] """ self._command = command @property def args(self): """ Gets the args of this V1Container. Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands :return: The args of this V1Container. :rtype: list[str] """ return self._args @args.setter def args(self, args): """ Sets the args of this V1Container. Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/containers.md#containers-and-commands :param args: The args of this V1Container. :type: list[str] """ self._args = args @property def working_dir(self): """ Gets the working_dir of this V1Container. Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. :return: The working_dir of this V1Container. :rtype: str """ return self._working_dir @working_dir.setter def working_dir(self, working_dir): """ Sets the working_dir of this V1Container. Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. :param working_dir: The working_dir of this V1Container. :type: str """ self._working_dir = working_dir @property def ports(self): """ Gets the ports of this V1Container. List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. :return: The ports of this V1Container. :rtype: list[V1ContainerPort] """ return self._ports @ports.setter def ports(self, ports): """ Sets the ports of this V1Container. List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. :param ports: The ports of this V1Container. :type: list[V1ContainerPort] """ self._ports = ports @property def env(self): """ Gets the env of this V1Container. List of environment variables to set in the container. Cannot be updated. :return: The env of this V1Container. :rtype: list[V1EnvVar] """ return self._env @env.setter def env(self, env): """ Sets the env of this V1Container. List of environment variables to set in the container. Cannot be updated. :param env: The env of this V1Container. :type: list[V1EnvVar] """ self._env = env @property def resources(self): """ Gets the resources of this V1Container. Compute Resources required by this container. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#resources :return: The resources of this V1Container. :rtype: V1ResourceRequirements """ return self._resources @resources.setter def resources(self, resources): """ Sets the resources of this V1Container. Compute Resources required by this container. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#resources :param resources: The resources of this V1Container. :type: V1ResourceRequirements """ self._resources = resources @property def volume_mounts(self): """ Gets the volume_mounts of this V1Container. Pod volumes to mount into the container's filesyste. Cannot be updated. :return: The volume_mounts of this V1Container. :rtype: list[V1VolumeMount] """ return self._volume_mounts @volume_mounts.setter def volume_mounts(self, volume_mounts): """ Sets the volume_mounts of this V1Container. Pod volumes to mount into the container's filesyste. Cannot be updated. :param volume_mounts: The volume_mounts of this V1Container. :type: list[V1VolumeMount] """ self._volume_mounts = volume_mounts @property def liveness_probe(self): """ Gets the liveness_probe of this V1Container. Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :return: The liveness_probe of this V1Container. :rtype: V1Probe """ return self._liveness_probe @liveness_probe.setter def liveness_probe(self, liveness_probe): """ Sets the liveness_probe of this V1Container. Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :param liveness_probe: The liveness_probe of this V1Container. :type: V1Probe """ self._liveness_probe = liveness_probe @property def readiness_probe(self): """ Gets the readiness_probe of this V1Container. Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :return: The readiness_probe of this V1Container. :rtype: V1Probe """ return self._readiness_probe @readiness_probe.setter def readiness_probe(self, readiness_probe): """ Sets the readiness_probe of this V1Container. Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :param readiness_probe: The readiness_probe of this V1Container. :type: V1Probe """ self._readiness_probe = readiness_probe @property def lifecycle(self): """ Gets the lifecycle of this V1Container. Actions that the management system should take in response to container lifecycle events. Cannot be updated. :return: The lifecycle of this V1Container. :rtype: V1Lifecycle """ return self._lifecycle @lifecycle.setter def lifecycle(self, lifecycle): """ Sets the lifecycle of this V1Container. Actions that the management system should take in response to container lifecycle events. Cannot be updated. :param lifecycle: The lifecycle of this V1Container. :type: V1Lifecycle """ self._lifecycle = lifecycle @property 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. Defaults to /dev/termination-log. Cannot be updated. :return: The termination_message_path of this V1Container. :rtype: str """ return self._termination_message_path @termination_message_path.setter def termination_message_path(self, termination_message_path): """ Sets the termination_message_path of this V1Container. Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Defaults to /dev/termination-log. Cannot be updated. :param termination_message_path: The termination_message_path of this V1Container. :type: str """ self._termination_message_path = termination_message_path @property def image_pull_policy(self): """ Gets the image_pull_policy of this V1Container. Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md#updating-images :return: The image_pull_policy of this V1Container. :rtype: str """ return self._image_pull_policy @image_pull_policy.setter def image_pull_policy(self, image_pull_policy): """ Sets the image_pull_policy of this V1Container. Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/images.md#updating-images :param image_pull_policy: The image_pull_policy of this V1Container. :type: str """ self._image_pull_policy = image_pull_policy @property def security_context(self): """ Gets the security_context of this V1Container. Security options the pod should run with. More info: http://releases.k8s.io/release-1.2/docs/design/security_context.md :return: The security_context of this V1Container. :rtype: V1SecurityContext """ return self._security_context @security_context.setter def security_context(self, security_context): """ Sets the security_context of this V1Container. Security options the pod should run with. More info: http://releases.k8s.io/release-1.2/docs/design/security_context.md :param security_context: The security_context of this V1Container. :type: V1SecurityContext """ self._security_context = security_context @property def stdin(self): """ Gets the stdin of this V1Container. Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. :return: The stdin of this V1Container. :rtype: bool """ return self._stdin @stdin.setter def stdin(self, stdin): """ Sets the stdin of this V1Container. Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. :param stdin: The stdin of this V1Container. :type: bool """ self._stdin = stdin @property def stdin_once(self): """ Gets the stdin_once of this V1Container. Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false :return: The stdin_once of this V1Container. :rtype: bool """ return self._stdin_once @stdin_once.setter def stdin_once(self, stdin_once): """ Sets the stdin_once of this V1Container. Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false :param stdin_once: The stdin_once of this V1Container. :type: bool """ self._stdin_once = stdin_once @property def tty(self): """ Gets the tty of this V1Container. Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. :return: The tty of this V1Container. :rtype: bool """ return self._tty @tty.setter def tty(self, tty): """ Sets the tty of this V1Container. Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. :param tty: The tty of this V1Container. :type: bool """ self._tty = tty def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/unversioned_status_cause.py0000664000567000056710000001174313046233226033443 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class UnversionedStatusCause(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'reason': 'str', 'message': 'str', 'field': 'str' } self.attribute_map = { 'reason': 'reason', 'message': 'message', 'field': 'field' } self._reason = None self._message = None self._field = None @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 @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 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.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\" :return: The field of this 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.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\" :param field: The field of this UnversionedStatusCause. :type: str """ self._field = field def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_rbd_volume_source.py0000664000567000056710000002203013046233226032432 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1RBDVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'monitors': 'list[str]', 'image': 'str', 'fs_type': 'str', 'pool': 'str', 'user': 'str', 'keyring': 'str', 'secret_ref': 'V1LocalObjectReference', 'read_only': 'bool' } self.attribute_map = { 'monitors': 'monitors', 'image': 'image', 'fs_type': 'fsType', 'pool': 'pool', 'user': 'user', 'keyring': 'keyring', 'secret_ref': 'secretRef', 'read_only': 'readOnly' } self._monitors = None self._image = None self._fs_type = None self._pool = None self._user = None self._keyring = None self._secret_ref = None self._read_only = None @property def monitors(self): """ Gets the monitors of this V1RBDVolumeSource. A collection of Ceph monitors. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The monitors of this V1RBDVolumeSource. :rtype: list[str] """ return self._monitors @monitors.setter def monitors(self, monitors): """ Sets the monitors of this V1RBDVolumeSource. A collection of Ceph monitors. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param monitors: The monitors of this V1RBDVolumeSource. :type: list[str] """ self._monitors = monitors @property def image(self): """ Gets the image of this V1RBDVolumeSource. The rados image name. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The image of this V1RBDVolumeSource. :rtype: str """ return self._image @image.setter def image(self, image): """ Sets the image of this V1RBDVolumeSource. The rados image name. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param image: The image of this V1RBDVolumeSource. :type: str """ self._image = image @property def fs_type(self): """ Gets the fs_type of this V1RBDVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#rbd :return: The fs_type of this V1RBDVolumeSource. :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): """ Sets the fs_type of this V1RBDVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#rbd :param fs_type: The fs_type of this V1RBDVolumeSource. :type: str """ self._fs_type = fs_type @property def pool(self): """ Gets the pool of this V1RBDVolumeSource. The rados pool name. Default is rbd. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it. :return: The pool of this V1RBDVolumeSource. :rtype: str """ return self._pool @pool.setter def pool(self, pool): """ Sets the pool of this V1RBDVolumeSource. The rados pool name. Default is rbd. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it. :param pool: The pool of this V1RBDVolumeSource. :type: str """ self._pool = pool @property def user(self): """ Gets the user of this V1RBDVolumeSource. The rados user name. Default is admin. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The user of this V1RBDVolumeSource. :rtype: str """ return self._user @user.setter def user(self, user): """ Sets the user of this V1RBDVolumeSource. The rados user name. Default is admin. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param user: The user of this V1RBDVolumeSource. :type: str """ self._user = user @property def keyring(self): """ Gets the keyring of this V1RBDVolumeSource. Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The keyring of this V1RBDVolumeSource. :rtype: str """ return self._keyring @keyring.setter def keyring(self, keyring): """ Sets the keyring of this V1RBDVolumeSource. Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param keyring: The keyring of this V1RBDVolumeSource. :type: str """ self._keyring = keyring @property def secret_ref(self): """ Gets the secret_ref of this V1RBDVolumeSource. SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is empty. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The secret_ref of this V1RBDVolumeSource. :rtype: V1LocalObjectReference """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): """ Sets the secret_ref of this V1RBDVolumeSource. SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is empty. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param secret_ref: The secret_ref of this V1RBDVolumeSource. :type: V1LocalObjectReference """ self._secret_ref = secret_ref @property def read_only(self): """ Gets the read_only of this V1RBDVolumeSource. ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :return: The read_only of this V1RBDVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1RBDVolumeSource. ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md#how-to-use-it :param read_only: The read_only of this V1RBDVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_daemon_set_status.py0000664000567000056710000001317013046233226033357 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1DaemonSetStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'current_number_scheduled': 'int', 'number_misscheduled': 'int', 'desired_number_scheduled': 'int' } self.attribute_map = { 'current_number_scheduled': 'currentNumberScheduled', 'number_misscheduled': 'numberMisscheduled', 'desired_number_scheduled': 'desiredNumberScheduled' } self._current_number_scheduled = None self._number_misscheduled = None self._desired_number_scheduled = None @property def current_number_scheduled(self): """ Gets the current_number_scheduled of this V1beta1DaemonSetStatus. 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/release-1.2/docs/admin/daemons.md :return: The current_number_scheduled of this V1beta1DaemonSetStatus. :rtype: int """ return self._current_number_scheduled @current_number_scheduled.setter def current_number_scheduled(self, current_number_scheduled): """ Sets the current_number_scheduled of this V1beta1DaemonSetStatus. 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/release-1.2/docs/admin/daemons.md :param current_number_scheduled: The current_number_scheduled of this V1beta1DaemonSetStatus. :type: int """ self._current_number_scheduled = current_number_scheduled @property def number_misscheduled(self): """ Gets the number_misscheduled of this V1beta1DaemonSetStatus. 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/release-1.2/docs/admin/daemons.md :return: The number_misscheduled of this V1beta1DaemonSetStatus. :rtype: int """ return self._number_misscheduled @number_misscheduled.setter def number_misscheduled(self, number_misscheduled): """ Sets the number_misscheduled of this V1beta1DaemonSetStatus. 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/release-1.2/docs/admin/daemons.md :param number_misscheduled: The number_misscheduled of this V1beta1DaemonSetStatus. :type: int """ self._number_misscheduled = number_misscheduled @property def desired_number_scheduled(self): """ Gets the desired_number_scheduled of this V1beta1DaemonSetStatus. 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/release-1.2/docs/admin/daemons.md :return: The desired_number_scheduled of this V1beta1DaemonSetStatus. :rtype: int """ return self._desired_number_scheduled @desired_number_scheduled.setter def desired_number_scheduled(self, desired_number_scheduled): """ Sets the desired_number_scheduled of this V1beta1DaemonSetStatus. 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/release-1.2/docs/admin/daemons.md :param desired_number_scheduled: The desired_number_scheduled of this V1beta1DaemonSetStatus. :type: int """ self._desired_number_scheduled = desired_number_scheduled def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_daemon_set.py0000664000567000056710000001563313046233226031762 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1DaemonSet(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1beta1DaemonSetSpec', 'status': 'V1beta1DaemonSetStatus' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status' } self._kind = None self._api_version = None self._metadata = None self._spec = None self._status = None @property def kind(self): """ Gets the kind of this V1beta1DaemonSet. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1beta1DaemonSet. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1beta1DaemonSet. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1beta1DaemonSet. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1beta1DaemonSet. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1beta1DaemonSet. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1beta1DaemonSet. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1beta1DaemonSet. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1beta1DaemonSet. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1beta1DaemonSet. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1beta1DaemonSet. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1beta1DaemonSet. :type: V1ObjectMeta """ self._metadata = metadata @property def spec(self): """ Gets the spec of this V1beta1DaemonSet. Spec defines the desired behavior of this daemon set. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V1beta1DaemonSet. :rtype: V1beta1DaemonSetSpec """ return self._spec @spec.setter def spec(self, spec): """ Sets the spec of this V1beta1DaemonSet. Spec defines the desired behavior of this daemon set. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V1beta1DaemonSet. :type: V1beta1DaemonSetSpec """ self._spec = spec @property def status(self): """ Gets the status of this V1beta1DaemonSet. 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/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The status of this V1beta1DaemonSet. :rtype: V1beta1DaemonSetStatus """ return self._status @status.setter def status(self, status): """ Sets the status of this V1beta1DaemonSet. 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/release-1.2/docs/devel/api-conventions.md#spec-and-status :param status: The status of this V1beta1DaemonSet. :type: V1beta1DaemonSetStatus """ self._status = status def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_daemon_set_list.py0000664000567000056710000001336013046233226033010 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1DaemonSetList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'items': 'list[V1beta1DaemonSet]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'items': 'items' } self._kind = None self._api_version = None self._metadata = None self._items = None @property def kind(self): """ Gets the kind of this V1beta1DaemonSetList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1beta1DaemonSetList. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1beta1DaemonSetList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1beta1DaemonSetList. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1beta1DaemonSetList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1beta1DaemonSetList. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1beta1DaemonSetList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1beta1DaemonSetList. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1beta1DaemonSetList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1beta1DaemonSetList. :rtype: UnversionedListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1beta1DaemonSetList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1beta1DaemonSetList. :type: UnversionedListMeta """ self._metadata = metadata @property def items(self): """ Gets the items of this V1beta1DaemonSetList. Items is a list of daemon sets. :return: The items of this V1beta1DaemonSetList. :rtype: list[V1beta1DaemonSet] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1beta1DaemonSetList. Items is a list of daemon sets. :param items: The items of this V1beta1DaemonSetList. :type: list[V1beta1DaemonSet] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_deployment_spec.py0000664000567000056710000002210613046233226033027 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1DeploymentSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'replicas': 'int', 'selector': 'V1beta1LabelSelector', 'template': 'V1PodTemplateSpec', 'strategy': 'V1beta1DeploymentStrategy', 'min_ready_seconds': 'int', 'revision_history_limit': 'int', 'paused': 'bool', 'rollback_to': 'V1beta1RollbackConfig' } self.attribute_map = { 'replicas': 'replicas', 'selector': 'selector', 'template': 'template', 'strategy': 'strategy', 'min_ready_seconds': 'minReadySeconds', 'revision_history_limit': 'revisionHistoryLimit', 'paused': 'paused', 'rollback_to': 'rollbackTo' } self._replicas = None self._selector = None self._template = None self._strategy = None self._min_ready_seconds = None self._revision_history_limit = None self._paused = None self._rollback_to = None @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 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: V1beta1LabelSelector """ 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: V1beta1LabelSelector """ self._selector = selector @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 """ self._template = template @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 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 object 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 object 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 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 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 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 def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/unversioned_patch.py0000664000567000056710000000404413046233226032033 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class UnversionedPatch(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { } self.attribute_map = { } def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_scale_spec.py0000664000567000056710000000526713046233226031747 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1ScaleSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'replicas': 'int' } self.attribute_map = { 'replicas': 'replicas' } self._replicas = None @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): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() ././@LongLink0000000000000000000000000000015300000000000011214 Lustar 00000000000000python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_persistent_volume_claim_volume_source.pypython-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_persistent_volume_claim_volume_sou0000664000567000056710000000762613046233226035514 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PersistentVolumeClaimVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'claim_name': 'str', 'read_only': 'bool' } self.attribute_map = { 'claim_name': 'claimName', 'read_only': 'readOnly' } self._claim_name = None self._read_only = None @property def claim_name(self): """ Gets the claim_name of this V1PersistentVolumeClaimVolumeSource. ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :return: The claim_name of this V1PersistentVolumeClaimVolumeSource. :rtype: str """ return self._claim_name @claim_name.setter def claim_name(self, claim_name): """ Sets the claim_name of this V1PersistentVolumeClaimVolumeSource. ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :param claim_name: The claim_name of this V1PersistentVolumeClaimVolumeSource. :type: str """ self._claim_name = claim_name @property def read_only(self): """ Gets the read_only of this V1PersistentVolumeClaimVolumeSource. Will force the ReadOnly setting in VolumeMounts. Default false. :return: The read_only of this V1PersistentVolumeClaimVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1PersistentVolumeClaimVolumeSource. Will force the ReadOnly setting in VolumeMounts. Default false. :param read_only: The read_only of this V1PersistentVolumeClaimVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_rolling_update_deployment.py0000664000567000056710000001366613046233226035120 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1RollingUpdateDeployment(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'max_unavailable': 'str', 'max_surge': 'str' } self.attribute_map = { 'max_unavailable': 'maxUnavailable', 'max_surge': 'maxSurge' } self._max_unavailable = None self._max_surge = None @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 @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 object 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 object 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 def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() ././@LongLink0000000000000000000000000000015100000000000011212 Lustar 00000000000000python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_horizontal_pod_autoscaler_spec.pypython-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_horizontal_pod_autoscaler_spe0000664000567000056710000001411213046233226035330 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1HorizontalPodAutoscalerSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'scale_ref': 'V1beta1SubresourceReference', 'min_replicas': 'int', 'max_replicas': 'int', 'cpu_utilization': 'V1beta1CPUTargetUtilization' } self.attribute_map = { 'scale_ref': 'scaleRef', 'min_replicas': 'minReplicas', 'max_replicas': 'maxReplicas', 'cpu_utilization': 'cpuUtilization' } self._scale_ref = None self._min_replicas = None self._max_replicas = None self._cpu_utilization = None @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 """ self._scale_ref = scale_ref @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 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 """ self._max_replicas = max_replicas @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 def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_job_condition.py0000664000567000056710000001442313046233226032460 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1JobCondition(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'type': 'str', 'status': 'str', 'last_probe_time': 'str', 'last_transition_time': 'str', 'reason': 'str', 'message': 'str' } self.attribute_map = { 'type': 'type', 'status': 'status', 'last_probe_time': 'lastProbeTime', 'last_transition_time': 'lastTransitionTime', 'reason': 'reason', 'message': 'message' } self._type = None self._status = None self._last_probe_time = None self._last_transition_time = None self._reason = None self._message = None @property def type(self): """ Gets the type of this 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 """ self._type = type @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 """ self._status = status @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: str """ return self._last_probe_time @last_probe_time.setter def last_probe_time(self, last_probe_time): """ Sets the last_probe_time of this V1beta1JobCondition. Last time the condition was checked. :param last_probe_time: The last_probe_time of this V1beta1JobCondition. :type: str """ 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: str """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): """ Sets the last_transition_time of this V1beta1JobCondition. Last time the condition transit from one status to another. :param last_transition_time: The last_transition_time of this V1beta1JobCondition. :type: str """ self._last_transition_time = last_transition_time @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 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 def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_object_meta.py0000664000567000056710000004601013046233226031174 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ObjectMeta(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'generate_name': 'str', 'namespace': 'str', 'self_link': 'str', 'uid': 'str', 'resource_version': 'str', 'generation': 'int', 'creation_timestamp': 'str', 'deletion_timestamp': 'str', 'deletion_grace_period_seconds': 'int', 'labels': 'dict(str, str)', 'annotations': 'object' } self.attribute_map = { 'name': 'name', 'generate_name': 'generateName', 'namespace': 'namespace', 'self_link': 'selfLink', 'uid': 'uid', 'resource_version': 'resourceVersion', 'generation': 'generation', 'creation_timestamp': 'creationTimestamp', 'deletion_timestamp': 'deletionTimestamp', 'deletion_grace_period_seconds': 'deletionGracePeriodSeconds', 'labels': 'labels', 'annotations': 'annotations' } self._name = None self._generate_name = None self._namespace = None self._self_link = None self._uid = None self._resource_version = None self._generation = None self._creation_timestamp = None self._deletion_timestamp = None self._deletion_grace_period_seconds = None self._labels = None self._annotations = None @property def name(self): """ Gets the name of this V1ObjectMeta. Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :return: The name of this V1ObjectMeta. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1ObjectMeta. Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1ObjectMeta. :type: str """ self._name = name @property def generate_name(self): """ Gets the generate_name of this V1ObjectMeta. GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#idempotency :return: The generate_name of this V1ObjectMeta. :rtype: str """ return self._generate_name @generate_name.setter def generate_name(self, generate_name): """ Sets the generate_name of this V1ObjectMeta. GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#idempotency :param generate_name: The generate_name of this V1ObjectMeta. :type: str """ self._generate_name = generate_name @property def namespace(self): """ Gets the namespace of this V1ObjectMeta. Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md :return: The namespace of this V1ObjectMeta. :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): """ Sets the namespace of this V1ObjectMeta. Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/namespaces.md :param namespace: The namespace of this V1ObjectMeta. :type: str """ self._namespace = namespace @property def self_link(self): """ Gets the self_link of this V1ObjectMeta. SelfLink is a URL representing this object. Populated by the system. Read-only. :return: The self_link of this V1ObjectMeta. :rtype: str """ return self._self_link @self_link.setter def self_link(self, self_link): """ Sets the self_link of this V1ObjectMeta. SelfLink is a URL representing this object. Populated by the system. Read-only. :param self_link: The self_link of this V1ObjectMeta. :type: str """ self._self_link = self_link @property def uid(self): """ Gets the uid of this V1ObjectMeta. UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#uids :return: The uid of this V1ObjectMeta. :rtype: str """ return self._uid @uid.setter def uid(self, uid): """ Sets the uid of this V1ObjectMeta. UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#uids :param uid: The uid of this V1ObjectMeta. :type: str """ self._uid = uid @property def resource_version(self): """ Gets the resource_version of this V1ObjectMeta. An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency :return: The resource_version of this V1ObjectMeta. :rtype: str """ return self._resource_version @resource_version.setter def resource_version(self, resource_version): """ Sets the resource_version of this V1ObjectMeta. An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#concurrency-control-and-consistency :param resource_version: The resource_version of this V1ObjectMeta. :type: str """ self._resource_version = resource_version @property def generation(self): """ Gets the generation of this V1ObjectMeta. A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. :return: The generation of this V1ObjectMeta. :rtype: int """ return self._generation @generation.setter def generation(self, generation): """ Sets the generation of this V1ObjectMeta. A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. :param generation: The generation of this V1ObjectMeta. :type: int """ self._generation = generation @property def creation_timestamp(self): """ Gets the creation_timestamp of this V1ObjectMeta. CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The creation_timestamp of this V1ObjectMeta. :rtype: str """ return self._creation_timestamp @creation_timestamp.setter def creation_timestamp(self, creation_timestamp): """ Sets the creation_timestamp of this V1ObjectMeta. CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param creation_timestamp: The creation_timestamp of this V1ObjectMeta. :type: str """ self._creation_timestamp = creation_timestamp @property def deletion_timestamp(self): """ Gets the deletion_timestamp of this V1ObjectMeta. DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource will be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. Once the resource is deleted in the API, the Kubelet will send a hard termination signal to the container. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The deletion_timestamp of this V1ObjectMeta. :rtype: str """ return self._deletion_timestamp @deletion_timestamp.setter def deletion_timestamp(self, deletion_timestamp): """ Sets the deletion_timestamp of this V1ObjectMeta. DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource will be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. Once the resource is deleted in the API, the Kubelet will send a hard termination signal to the container. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param deletion_timestamp: The deletion_timestamp of this V1ObjectMeta. :type: str """ self._deletion_timestamp = deletion_timestamp @property def deletion_grace_period_seconds(self): """ Gets the deletion_grace_period_seconds of this V1ObjectMeta. Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. :return: The deletion_grace_period_seconds of this V1ObjectMeta. :rtype: int """ return self._deletion_grace_period_seconds @deletion_grace_period_seconds.setter def deletion_grace_period_seconds(self, deletion_grace_period_seconds): """ Sets the deletion_grace_period_seconds of this V1ObjectMeta. Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. :param deletion_grace_period_seconds: The deletion_grace_period_seconds of this V1ObjectMeta. :type: int """ self._deletion_grace_period_seconds = deletion_grace_period_seconds @property def labels(self): """ Gets the labels of this V1ObjectMeta. Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://releases.k8s.io/release-1.2/docs/user-guide/labels.md :return: The labels of this V1ObjectMeta. :rtype: object """ return self._labels @labels.setter def labels(self, labels): """ Sets the labels of this V1ObjectMeta. Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://releases.k8s.io/release-1.2/docs/user-guide/labels.md :param labels: The labels of this V1ObjectMeta. :type: object """ self._labels = labels @property def annotations(self): """ Gets the annotations of this V1ObjectMeta. Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://releases.k8s.io/release-1.2/docs/user-guide/annotations.md :return: The annotations of this V1ObjectMeta. :rtype: object """ return self._annotations @annotations.setter def annotations(self, annotations): """ Sets the annotations of this V1ObjectMeta. Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://releases.k8s.io/release-1.2/docs/user-guide/annotations.md :param annotations: The annotations of this V1ObjectMeta. :type: object """ self._annotations = annotations def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_http_header.py0000664000567000056710000000614013046233226031207 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1HTTPHeader(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'value': 'str' } self.attribute_map = { 'name': 'name', 'value': 'value' } self._name = None self._value = None @property def name(self): """ Gets the name of this V1HTTPHeader. The header field name :return: The name of this V1HTTPHeader. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1HTTPHeader. The header field name :param name: The name of this V1HTTPHeader. :type: str """ self._name = name @property def value(self): """ Gets the value of this V1HTTPHeader. The header field value :return: The value of this V1HTTPHeader. :rtype: str """ return self._value @value.setter def value(self, value): """ Sets the value of this V1HTTPHeader. The header field value :param value: The value of this V1HTTPHeader. :type: str """ self._value = value def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_security_context.py0000664000567000056710000002141413046233226032334 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1SecurityContext(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'capabilities': 'V1Capabilities', 'privileged': 'bool', 'se_linux_options': 'V1SELinuxOptions', 'run_as_user': 'int', 'run_as_non_root': 'bool', 'read_only_root_filesystem': 'bool' } self.attribute_map = { 'capabilities': 'capabilities', 'privileged': 'privileged', 'se_linux_options': 'seLinuxOptions', 'run_as_user': 'runAsUser', 'run_as_non_root': 'runAsNonRoot', 'read_only_root_filesystem': 'readOnlyRootFilesystem' } self._capabilities = None self._privileged = None self._se_linux_options = None self._run_as_user = None self._run_as_non_root = None self._read_only_root_filesystem = None @property def capabilities(self): """ Gets the capabilities of this V1SecurityContext. The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. :return: The capabilities of this V1SecurityContext. :rtype: V1Capabilities """ return self._capabilities @capabilities.setter def capabilities(self, capabilities): """ Sets the capabilities of this V1SecurityContext. The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. :param capabilities: The capabilities of this V1SecurityContext. :type: V1Capabilities """ self._capabilities = capabilities @property def privileged(self): """ Gets the privileged of this V1SecurityContext. Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. :return: The privileged of this V1SecurityContext. :rtype: bool """ return self._privileged @privileged.setter def privileged(self, privileged): """ Sets the privileged of this V1SecurityContext. Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. :param privileged: The privileged of this V1SecurityContext. :type: bool """ self._privileged = privileged @property def se_linux_options(self): """ Gets the se_linux_options of this V1SecurityContext. The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :return: The se_linux_options of this V1SecurityContext. :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 V1SecurityContext. The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :param se_linux_options: The se_linux_options of this V1SecurityContext. :type: V1SELinuxOptions """ self._se_linux_options = se_linux_options @property def run_as_user(self): """ Gets the run_as_user of this V1SecurityContext. The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :return: The run_as_user of this V1SecurityContext. :rtype: int """ return self._run_as_user @run_as_user.setter def run_as_user(self, run_as_user): """ Sets the run_as_user of this V1SecurityContext. The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :param run_as_user: The run_as_user of this V1SecurityContext. :type: int """ self._run_as_user = run_as_user @property def run_as_non_root(self): """ Gets the run_as_non_root of this V1SecurityContext. Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :return: The run_as_non_root of this V1SecurityContext. :rtype: bool """ return self._run_as_non_root @run_as_non_root.setter def run_as_non_root(self, run_as_non_root): """ Sets the run_as_non_root of this V1SecurityContext. Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :param run_as_non_root: The run_as_non_root of this V1SecurityContext. :type: bool """ self._run_as_non_root = run_as_non_root @property def read_only_root_filesystem(self): """ Gets the read_only_root_filesystem of this V1SecurityContext. Whether this container has a read-only root filesystem. Default is false. :return: The read_only_root_filesystem of this V1SecurityContext. :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 V1SecurityContext. Whether this container has a read-only root filesystem. Default is false. :param read_only_root_filesystem: The read_only_root_filesystem of this V1SecurityContext. :type: bool """ self._read_only_root_filesystem = read_only_root_filesystem def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_job_status.py0000664000567000056710000001604013046233226032012 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1JobStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'conditions': 'list[V1beta1JobCondition]', 'start_time': 'str', 'completion_time': 'str', 'active': 'int', 'succeeded': 'int', 'failed': 'int' } self.attribute_map = { 'conditions': 'conditions', 'start_time': 'startTime', 'completion_time': 'completionTime', 'active': 'active', 'succeeded': 'succeeded', 'failed': 'failed' } self._conditions = None self._start_time = None self._completion_time = None self._active = None self._succeeded = None self._failed = None @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://releases.k8s.io/release-1.2/docs/user-guide/jobs.md :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://releases.k8s.io/release-1.2/docs/user-guide/jobs.md :param conditions: The conditions of this V1beta1JobStatus. :type: list[V1beta1JobCondition] """ self._conditions = conditions @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: str """ 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: str """ self._start_time = start_time @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: str """ 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: str """ self._completion_time = completion_time @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 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 @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 def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_object_field_selector.py0000664000567000056710000000705113046233226033233 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ObjectFieldSelector(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'api_version': 'str', 'field_path': 'str' } self.attribute_map = { 'api_version': 'apiVersion', 'field_path': 'fieldPath' } self._api_version = None self._field_path = None @property def api_version(self): """ Gets the api_version of this V1ObjectFieldSelector. Version of the schema the FieldPath is written in terms of, defaults to \"v1\". :return: The api_version of this V1ObjectFieldSelector. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1ObjectFieldSelector. Version of the schema the FieldPath is written in terms of, defaults to \"v1\". :param api_version: The api_version of this V1ObjectFieldSelector. :type: str """ self._api_version = api_version @property def field_path(self): """ Gets the field_path of this V1ObjectFieldSelector. Path of the field to select in the specified API version. :return: The field_path of this V1ObjectFieldSelector. :rtype: str """ return self._field_path @field_path.setter def field_path(self, field_path): """ Sets the field_path of this V1ObjectFieldSelector. Path of the field to select in the specified API version. :param field_path: The field_path of this V1ObjectFieldSelector. :type: str """ self._field_path = field_path def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_glusterfs_volume_source.py0000664000567000056710000001132413046233226033705 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1GlusterfsVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'endpoints': 'str', 'path': 'str', 'read_only': 'bool' } self.attribute_map = { 'endpoints': 'endpoints', 'path': 'path', 'read_only': 'readOnly' } self._endpoints = None self._path = None self._read_only = None @property def endpoints(self): """ Gets the endpoints of this V1GlusterfsVolumeSource. EndpointsName is the endpoint name that details Glusterfs topology. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :return: The endpoints of this V1GlusterfsVolumeSource. :rtype: str """ return self._endpoints @endpoints.setter def endpoints(self, endpoints): """ Sets the endpoints of this V1GlusterfsVolumeSource. EndpointsName is the endpoint name that details Glusterfs topology. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :param endpoints: The endpoints of this V1GlusterfsVolumeSource. :type: str """ self._endpoints = endpoints @property def path(self): """ Gets the path of this V1GlusterfsVolumeSource. Path is the Glusterfs volume path. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :return: The path of this V1GlusterfsVolumeSource. :rtype: str """ return self._path @path.setter def path(self, path): """ Sets the path of this V1GlusterfsVolumeSource. Path is the Glusterfs volume path. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :param path: The path of this V1GlusterfsVolumeSource. :type: str """ self._path = path @property def read_only(self): """ Gets the read_only of this V1GlusterfsVolumeSource. ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :return: The read_only of this V1GlusterfsVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1GlusterfsVolumeSource. ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md#create-a-pod :param read_only: The read_only of this V1GlusterfsVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_resource_requirements.py0000664000567000056710000001014613046233226033353 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ResourceRequirements(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'limits': 'object', 'requests': 'object' } self.attribute_map = { 'limits': 'limits', 'requests': 'requests' } self._limits = None self._requests = None @property def limits(self): """ Gets the limits of this V1ResourceRequirements. Limits describes the maximum amount of compute resources allowed. More info: http://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications :return: The limits of this V1ResourceRequirements. :rtype: object """ return self._limits @limits.setter def limits(self, limits): """ Sets the limits of this V1ResourceRequirements. Limits describes the maximum amount of compute resources allowed. More info: http://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications :param limits: The limits of this V1ResourceRequirements. :type: object """ self._limits = limits @property def requests(self): """ Gets the requests of this V1ResourceRequirements. Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications :return: The requests of this V1ResourceRequirements. :rtype: object """ return self._requests @requests.setter def requests(self, requests): """ Sets the requests of this V1ResourceRequirements. Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://releases.k8s.io/release-1.2/docs/design/resources.md#resource-specifications :param requests: The requests of this V1ResourceRequirements. :type: object """ self._requests = requests def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_scale.py0000664000567000056710000001510713046233226030727 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1Scale(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1beta1ScaleSpec', 'status': 'V1beta1ScaleStatus' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status' } self._kind = None self._api_version = None self._metadata = None self._spec = None self._status = None @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/release-1.2/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/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1beta1Scale. :type: str """ self._kind = kind @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/release-1.2/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/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1beta1Scale. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1beta1Scale. Standard object metadata; More info: http://releases.k8s.io/release-1.2/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/release-1.2/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/release-1.2/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/release-1.2/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/release-1.2/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/release-1.2/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): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/__init__.py0000664000567000056710000001374213046233226030057 0ustar jenkinsjenkins00000000000000# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from __future__ import absolute_import # import models into model package from .v1beta1_deployment_status import V1beta1DeploymentStatus from .v1beta1_daemon_set_status import V1beta1DaemonSetStatus from .v1beta1_job import V1beta1Job from .v1_object_field_selector import V1ObjectFieldSelector from .v1_se_linux_options import V1SELinuxOptions from .v1_volume_mount import V1VolumeMount from .v1beta1_ingress_spec import V1beta1IngressSpec from .v1beta1_ingress_backend import V1beta1IngressBackend from .v1_ceph_fs_volume_source import V1CephFSVolumeSource from .v1beta1_replica_set_list import V1beta1ReplicaSetList from .v1beta1_ingress_status import V1beta1IngressStatus from .v1_downward_api_volume_source import V1DownwardAPIVolumeSource from .unversioned_status_cause import UnversionedStatusCause from .v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource from .v1beta1_rolling_update_deployment import V1beta1RollingUpdateDeployment from .v1beta1_http_ingress_rule_value import V1beta1HTTPIngressRuleValue from .v1_config_map_volume_source import V1ConfigMapVolumeSource from .v1_git_repo_volume_source import V1GitRepoVolumeSource from .v1_capabilities import V1Capabilities from .v1beta1_job_status import V1beta1JobStatus from .v1_local_object_reference import V1LocalObjectReference from .v1_exec_action import V1ExecAction from .v1_object_meta import V1ObjectMeta from .v1beta1_replica_set_spec import V1beta1ReplicaSetSpec from .v1beta1_daemon_set_spec import V1beta1DaemonSetSpec from .v1beta1_deployment import V1beta1Deployment from .v1_azure_file_volume_source import V1AzureFileVolumeSource from .v1_iscsi_volume_source import V1ISCSIVolumeSource from .v1_empty_dir_volume_source import V1EmptyDirVolumeSource from .v1beta1_ingress_list import V1beta1IngressList from .v1beta1_scale_spec import V1beta1ScaleSpec from .unversioned_patch import UnversionedPatch from .v1_flocker_volume_source import V1FlockerVolumeSource from .v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource from .unversioned_list_meta import UnversionedListMeta from .v1beta1_horizontal_pod_autoscaler import V1beta1HorizontalPodAutoscaler from .v1beta1_rollback_config import V1beta1RollbackConfig from .v1_secret_volume_source import V1SecretVolumeSource from .v1_env_var_source import V1EnvVarSource from .v1_flex_volume_source import V1FlexVolumeSource from .v1beta1_job_condition import V1beta1JobCondition from .v1_load_balancer_ingress import V1LoadBalancerIngress from .v1_key_to_path import V1KeyToPath from .v1_delete_options import V1DeleteOptions from .v1_volume import V1Volume from .v1beta1_daemon_set_list import V1beta1DaemonSetList from .integer import Integer from .v1_probe import V1Probe from .v1beta1_deployment_spec import V1beta1DeploymentSpec from .v1_secret_key_selector import V1SecretKeySelector from .v1_capability import V1Capability from .v1_downward_api_volume_file import V1DownwardAPIVolumeFile from .v1_container_port import V1ContainerPort from .v1_pod_spec import V1PodSpec from .v1_lifecycle import V1Lifecycle from .v1_handler import V1Handler from .v1_glusterfs_volume_source import V1GlusterfsVolumeSource from .v1beta1_ingress_tls import V1beta1IngressTLS from .v1beta1_subresource_reference import V1beta1SubresourceReference from .v1beta1_scale import V1beta1Scale from .v1_rbd_volume_source import V1RBDVolumeSource from .v1beta1_scale_status import V1beta1ScaleStatus from .v1_nfs_volume_source import V1NFSVolumeSource from .v1beta1_deployment_list import V1beta1DeploymentList from .v1beta1_deployment_rollback import V1beta1DeploymentRollback from .v1_http_header import V1HTTPHeader from .v1beta1_horizontal_pod_autoscaler_status import V1beta1HorizontalPodAutoscalerStatus from .v1_fc_volume_source import V1FCVolumeSource from .v1_tcp_socket_action import V1TCPSocketAction from .v1beta1_deployment_strategy import V1beta1DeploymentStrategy from .v1beta1_ingress_rule import V1beta1IngressRule from .v1beta1_job_list import V1beta1JobList from .unversioned_status_details import UnversionedStatusDetails from .v1_http_get_action import V1HTTPGetAction from .v1beta1_cpu_target_utilization import V1beta1CPUTargetUtilization from .v1_load_balancer_status import V1LoadBalancerStatus from .v1_container import V1Container from .v1_pod_security_context import V1PodSecurityContext from .v1beta1_replica_set_status import V1beta1ReplicaSetStatus from .v1beta1_label_selector import V1beta1LabelSelector from .v1_host_path_volume_source import V1HostPathVolumeSource from .v1beta1_replica_set import V1beta1ReplicaSet from .v1beta1_daemon_set import V1beta1DaemonSet from .json_watch_event import JsonWatchEvent from .v1_cinder_volume_source import V1CinderVolumeSource from .v1_security_context import V1SecurityContext from .v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource from .v1beta1_horizontal_pod_autoscaler_spec import V1beta1HorizontalPodAutoscalerSpec from .v1beta1_label_selector_requirement import V1beta1LabelSelectorRequirement from .v1_env_var import V1EnvVar from .v1_resource_requirements import V1ResourceRequirements from .v1_pod_template_spec import V1PodTemplateSpec from .v1beta1_job_spec import V1beta1JobSpec from .unversioned_status import UnversionedStatus from .v1beta1_horizontal_pod_autoscaler_list import V1beta1HorizontalPodAutoscalerList from .v1_config_map_key_selector import V1ConfigMapKeySelector from .v1beta1_http_ingress_path import V1beta1HTTPIngressPath from .v1beta1_ingress import V1beta1Ingress python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_deployment_rollback.py0000664000567000056710000001512013046233226033664 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1DeploymentRollback(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'name': 'str', 'updated_annotations': 'object', 'rollback_to': 'V1beta1RollbackConfig' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'name': 'name', 'updated_annotations': 'updatedAnnotations', 'rollback_to': 'rollbackTo' } self._kind = None self._api_version = None self._name = None self._updated_annotations = None self._rollback_to = None @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/release-1.2/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/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1beta1DeploymentRollback. :type: str """ self._kind = kind @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/release-1.2/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/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1beta1DeploymentRollback. :type: str """ self._api_version = api_version @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 """ self._name = name @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: object """ 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: object """ self._updated_annotations = updated_annotations @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 """ self._rollback_to = rollback_to def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_cpu_target_utilization.py0000664000567000056710000000601313046233226034424 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1CPUTargetUtilization(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'target_percentage': 'int' } self.attribute_map = { 'target_percentage': 'targetPercentage' } self._target_percentage = None @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 """ self._target_percentage = target_percentage def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_load_balancer_status.py0000664000567000056710000000566513046233226033104 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1LoadBalancerStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'ingress': 'list[V1LoadBalancerIngress]' } self.attribute_map = { 'ingress': 'ingress' } self._ingress = None @property def ingress(self): """ Gets the ingress of this V1LoadBalancerStatus. Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. :return: The ingress of this V1LoadBalancerStatus. :rtype: list[V1LoadBalancerIngress] """ return self._ingress @ingress.setter def ingress(self, ingress): """ Sets the ingress of this V1LoadBalancerStatus. Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. :param ingress: The ingress of this V1LoadBalancerStatus. :type: list[V1LoadBalancerIngress] """ self._ingress = ingress def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_cinder_volume_source.py0000664000567000056710000001165313046233226033140 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1CinderVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'volume_id': 'str', 'fs_type': 'str', 'read_only': 'bool' } self.attribute_map = { 'volume_id': 'volumeID', 'fs_type': 'fsType', 'read_only': 'readOnly' } self._volume_id = None self._fs_type = None self._read_only = None @property def volume_id(self): """ Gets the volume_id of this V1CinderVolumeSource. volume id used to identify the volume in cinder More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :return: The volume_id of this V1CinderVolumeSource. :rtype: str """ return self._volume_id @volume_id.setter def volume_id(self, volume_id): """ Sets the volume_id of this V1CinderVolumeSource. volume id used to identify the volume in cinder More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :param volume_id: The volume_id of this V1CinderVolumeSource. :type: str """ self._volume_id = volume_id @property def fs_type(self): """ Gets the fs_type of this V1CinderVolumeSource. Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :return: The fs_type of this V1CinderVolumeSource. :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): """ Sets the fs_type of this V1CinderVolumeSource. Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :param fs_type: The fs_type of this V1CinderVolumeSource. :type: str """ self._fs_type = fs_type @property def read_only(self): """ Gets the read_only of this V1CinderVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :return: The read_only of this V1CinderVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1CinderVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :param read_only: The read_only of this V1CinderVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_tcp_socket_action.py0000664000567000056710000000542213046233226032415 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1TCPSocketAction(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'port': 'str' } self.attribute_map = { 'port': 'port' } self._port = None @property def port(self): """ Gets the port of this V1TCPSocketAction. Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. :return: The port of this V1TCPSocketAction. :rtype: str """ return self._port @port.setter def port(self, port): """ Sets the port of this V1TCPSocketAction. Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. :param port: The port of this V1TCPSocketAction. :type: str """ self._port = port def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_nfs_volume_source.py0000664000567000056710000001077413046233226032465 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1NFSVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'server': 'str', 'path': 'str', 'read_only': 'bool' } self.attribute_map = { 'server': 'server', 'path': 'path', 'read_only': 'readOnly' } self._server = None self._path = None self._read_only = None @property def server(self): """ Gets the server of this V1NFSVolumeSource. Server is the hostname or IP address of the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :return: The server of this V1NFSVolumeSource. :rtype: str """ return self._server @server.setter def server(self, server): """ Sets the server of this V1NFSVolumeSource. Server is the hostname or IP address of the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :param server: The server of this V1NFSVolumeSource. :type: str """ self._server = server @property def path(self): """ Gets the path of this V1NFSVolumeSource. Path that is exported by the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :return: The path of this V1NFSVolumeSource. :rtype: str """ return self._path @path.setter def path(self, path): """ Sets the path of this V1NFSVolumeSource. Path that is exported by the NFS server. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :param path: The path of this V1NFSVolumeSource. :type: str """ self._path = path @property def read_only(self): """ Gets the read_only of this V1NFSVolumeSource. ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :return: The read_only of this V1NFSVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1NFSVolumeSource. ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :param read_only: The read_only of this V1NFSVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_ingress_spec.py0000664000567000056710000001216613046233226032326 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1IngressSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'backend': 'V1beta1IngressBackend', 'tls': 'list[V1beta1IngressTLS]', 'rules': 'list[V1beta1IngressRule]' } self.attribute_map = { 'backend': 'backend', 'tls': 'tls', 'rules': 'rules' } self._backend = None self._tls = None self._rules = None @property def backend(self): """ Gets the backend of this V1beta1IngressSpec. A default backend capable of servicing requests that don't match object 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. :return: The backend of this V1beta1IngressSpec. :rtype: V1beta1IngressBackend """ return self._backend @backend.setter def backend(self, backend): """ Sets the backend of this V1beta1IngressSpec. A default backend capable of servicing requests that don't match object 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. :param backend: The backend of this V1beta1IngressSpec. :type: V1beta1IngressBackend """ self._backend = backend @property def tls(self): """ Gets the tls of this V1beta1IngressSpec. TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. :return: The tls of this V1beta1IngressSpec. :rtype: list[V1beta1IngressTLS] """ return self._tls @tls.setter def tls(self, tls): """ Sets the tls of this V1beta1IngressSpec. TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. :param tls: The tls of this V1beta1IngressSpec. :type: list[V1beta1IngressTLS] """ self._tls = tls @property def rules(self): """ Gets the rules of this V1beta1IngressSpec. A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. :return: The rules of this V1beta1IngressSpec. :rtype: list[V1beta1IngressRule] """ return self._rules @rules.setter def rules(self, rules): """ Sets the rules of this V1beta1IngressSpec. A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. :param rules: The rules of this V1beta1IngressSpec. :type: list[V1beta1IngressRule] """ self._rules = rules def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_ingress_tls.py0000664000567000056710000001046013046233226032171 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1IngressTLS(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'hosts': 'list[str]', 'secret_name': 'str' } self.attribute_map = { 'hosts': 'hosts', 'secret_name': 'secretName' } self._hosts = None self._secret_name = None @property def hosts(self): """ Gets the hosts of this V1beta1IngressTLS. Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. :return: The hosts of this V1beta1IngressTLS. :rtype: list[str] """ return self._hosts @hosts.setter def hosts(self, hosts): """ Sets the hosts of this V1beta1IngressTLS. Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. :param hosts: The hosts of this V1beta1IngressTLS. :type: list[str] """ self._hosts = hosts @property def secret_name(self): """ Gets the secret_name of this V1beta1IngressTLS. SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. :return: The secret_name of this V1beta1IngressTLS. :rtype: str """ return self._secret_name @secret_name.setter def secret_name(self, secret_name): """ Sets the secret_name of this V1beta1IngressTLS. SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. :param secret_name: The secret_name of this V1beta1IngressTLS. :type: str """ self._secret_name = secret_name def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_ingress_backend.py0000664000567000056710000000677513046233226032774 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1IngressBackend(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'service_name': 'str', 'service_port': 'str' } self.attribute_map = { 'service_name': 'serviceName', 'service_port': 'servicePort' } self._service_name = None self._service_port = None @property def service_name(self): """ Gets the service_name of this V1beta1IngressBackend. Specifies the name of the referenced service. :return: The service_name of this V1beta1IngressBackend. :rtype: str """ return self._service_name @service_name.setter def service_name(self, service_name): """ Sets the service_name of this V1beta1IngressBackend. Specifies the name of the referenced service. :param service_name: The service_name of this V1beta1IngressBackend. :type: str """ self._service_name = service_name @property def service_port(self): """ Gets the service_port of this V1beta1IngressBackend. Specifies the port of the referenced service. :return: The service_port of this V1beta1IngressBackend. :rtype: str """ return self._service_port @service_port.setter def service_port(self, service_port): """ Sets the service_port of this V1beta1IngressBackend. Specifies the port of the referenced service. :param service_port: The service_port of this V1beta1IngressBackend. :type: str """ self._service_port = service_port def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() ././@LongLink0000000000000000000000000000015100000000000011212 Lustar 00000000000000python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_horizontal_pod_autoscaler_list.pypython-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_horizontal_pod_autoscaler_lis0000664000567000056710000001356413046233226035342 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1HorizontalPodAutoscalerList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'items': 'list[V1beta1HorizontalPodAutoscaler]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'items': 'items' } self._kind = None self._api_version = None self._metadata = None self._items = None @property def kind(self): """ Gets the kind of this 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/release-1.2/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/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1beta1HorizontalPodAutoscalerList. :type: str """ self._kind = kind @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/release-1.2/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/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1beta1HorizontalPodAutoscalerList. :type: str """ self._api_version = api_version @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 @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] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_flex_volume_source.py0000664000567000056710000001360313046233226032627 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1FlexVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'driver': 'str', 'fs_type': 'str', 'secret_ref': 'V1LocalObjectReference', 'read_only': 'bool', 'options': 'object' } self.attribute_map = { 'driver': 'driver', 'fs_type': 'fsType', 'secret_ref': 'secretRef', 'read_only': 'readOnly', 'options': 'options' } self._driver = None self._fs_type = None self._secret_ref = None self._read_only = None self._options = None @property def driver(self): """ Gets the driver of this V1FlexVolumeSource. Driver is the name of the driver to use for this volume. :return: The driver of this V1FlexVolumeSource. :rtype: str """ return self._driver @driver.setter def driver(self, driver): """ Sets the driver of this V1FlexVolumeSource. Driver is the name of the driver to use for this volume. :param driver: The driver of this V1FlexVolumeSource. :type: str """ self._driver = driver @property def fs_type(self): """ Gets the fs_type of this V1FlexVolumeSource. Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. :return: The fs_type of this V1FlexVolumeSource. :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): """ Sets the fs_type of this V1FlexVolumeSource. Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. :param fs_type: The fs_type of this V1FlexVolumeSource. :type: str """ self._fs_type = fs_type @property def secret_ref(self): """ Gets the secret_ref of this V1FlexVolumeSource. Optional: SecretRef is reference to the authentication secret for User, default is empty. :return: The secret_ref of this V1FlexVolumeSource. :rtype: V1LocalObjectReference """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): """ Sets the secret_ref of this V1FlexVolumeSource. Optional: SecretRef is reference to the authentication secret for User, default is empty. :param secret_ref: The secret_ref of this V1FlexVolumeSource. :type: V1LocalObjectReference """ self._secret_ref = secret_ref @property def read_only(self): """ Gets the read_only of this V1FlexVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. :return: The read_only of this V1FlexVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1FlexVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. :param read_only: The read_only of this V1FlexVolumeSource. :type: bool """ self._read_only = read_only @property def options(self): """ Gets the options of this V1FlexVolumeSource. Optional: Extra command options if object. :return: The options of this V1FlexVolumeSource. :rtype: object """ return self._options @options.setter def options(self, options): """ Sets the options of this V1FlexVolumeSource. Optional: Extra command options if object. :param options: The options of this V1FlexVolumeSource. :type: object """ self._options = options def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_container_port.py0000664000567000056710000001376713046233226031763 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ContainerPort(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'host_port': 'int', 'container_port': 'int', 'protocol': 'str', 'host_ip': 'str' } self.attribute_map = { 'name': 'name', 'host_port': 'hostPort', 'container_port': 'containerPort', 'protocol': 'protocol', 'host_ip': 'hostIP' } self._name = None self._host_port = None self._container_port = None self._protocol = None self._host_ip = None @property def name(self): """ Gets the name of this V1ContainerPort. If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. :return: The name of this V1ContainerPort. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1ContainerPort. If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. :param name: The name of this V1ContainerPort. :type: str """ self._name = name @property def host_port(self): """ Gets the host_port of this V1ContainerPort. Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. :return: The host_port of this V1ContainerPort. :rtype: int """ return self._host_port @host_port.setter def host_port(self, host_port): """ Sets the host_port of this V1ContainerPort. Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. :param host_port: The host_port of this V1ContainerPort. :type: int """ self._host_port = host_port @property def container_port(self): """ Gets the container_port of this V1ContainerPort. Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. :return: The container_port of this V1ContainerPort. :rtype: int """ return self._container_port @container_port.setter def container_port(self, container_port): """ Sets the container_port of this V1ContainerPort. Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. :param container_port: The container_port of this V1ContainerPort. :type: int """ self._container_port = container_port @property def protocol(self): """ Gets the protocol of this V1ContainerPort. Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". :return: The protocol of this V1ContainerPort. :rtype: str """ return self._protocol @protocol.setter def protocol(self, protocol): """ Sets the protocol of this V1ContainerPort. Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". :param protocol: The protocol of this V1ContainerPort. :type: str """ self._protocol = protocol @property def host_ip(self): """ Gets the host_ip of this V1ContainerPort. What host IP to bind the external port to. :return: The host_ip of this V1ContainerPort. :rtype: str """ return self._host_ip @host_ip.setter def host_ip(self, host_ip): """ Sets the host_ip of this V1ContainerPort. What host IP to bind the external port to. :param host_ip: The host_ip of this V1ContainerPort. :type: str """ self._host_ip = host_ip def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_deployment.py0000664000567000056710000001435413046233226032023 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1Deployment(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1beta1DeploymentSpec', 'status': 'V1beta1DeploymentStatus' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status' } self._kind = None self._api_version = None self._metadata = None self._spec = None self._status = None @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/release-1.2/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/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1beta1Deployment. :type: str """ self._kind = kind @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/release-1.2/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/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1beta1Deployment. :type: str """ self._api_version = api_version @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): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_scale_status.py0000664000567000056710000001227713046233226032337 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1ScaleStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'replicas': 'int', 'selector': 'object', 'target_selector': 'str' } self.attribute_map = { 'replicas': 'replicas', 'selector': 'selector', 'target_selector': 'targetSelector' } self._replicas = None self._selector = None self._target_selector = None @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 """ 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://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors :return: The selector of this V1beta1ScaleStatus. :rtype: object """ 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://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors :param selector: The selector of this V1beta1ScaleStatus. :type: object """ 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://releases.k8s.io/release-1.2/docs/user-guide/labels.md#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://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors :param target_selector: The target_selector of this V1beta1ScaleStatus. :type: str """ self._target_selector = target_selector def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_pod_security_context.py0000664000567000056710000002067213046233226033203 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PodSecurityContext(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'se_linux_options': 'V1SELinuxOptions', 'run_as_user': 'int', 'run_as_non_root': 'bool', 'supplemental_groups': 'list[int]', 'fs_group': 'int' } self.attribute_map = { 'se_linux_options': 'seLinuxOptions', 'run_as_user': 'runAsUser', 'run_as_non_root': 'runAsNonRoot', 'supplemental_groups': 'supplementalGroups', 'fs_group': 'fsGroup' } self._se_linux_options = None self._run_as_user = None self._run_as_non_root = None self._supplemental_groups = None self._fs_group = None @property def se_linux_options(self): """ Gets the se_linux_options of this V1PodSecurityContext. The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. :return: The se_linux_options of this V1PodSecurityContext. :rtype: V1SELinuxOptions """ return self._se_linux_options @se_linux_options.setter def se_linux_options(self, se_linux_options): """ Sets the se_linux_options of this V1PodSecurityContext. The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. :param se_linux_options: The se_linux_options of this V1PodSecurityContext. :type: V1SELinuxOptions """ self._se_linux_options = se_linux_options @property def run_as_user(self): """ Gets the run_as_user of this V1PodSecurityContext. The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. :return: The run_as_user of this V1PodSecurityContext. :rtype: int """ return self._run_as_user @run_as_user.setter def run_as_user(self, run_as_user): """ Sets the run_as_user of this V1PodSecurityContext. The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. :param run_as_user: The run_as_user of this V1PodSecurityContext. :type: int """ self._run_as_user = run_as_user @property def run_as_non_root(self): """ Gets the run_as_non_root of this V1PodSecurityContext. Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :return: The run_as_non_root of this V1PodSecurityContext. :rtype: bool """ return self._run_as_non_root @run_as_non_root.setter def run_as_non_root(self, run_as_non_root): """ Sets the run_as_non_root of this V1PodSecurityContext. Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :param run_as_non_root: The run_as_non_root of this V1PodSecurityContext. :type: bool """ self._run_as_non_root = run_as_non_root @property def supplemental_groups(self): """ Gets the supplemental_groups of this V1PodSecurityContext. A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to object container. :return: The supplemental_groups of this V1PodSecurityContext. :rtype: list[int] """ return self._supplemental_groups @supplemental_groups.setter def supplemental_groups(self, supplemental_groups): """ Sets the supplemental_groups of this V1PodSecurityContext. A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to object container. :param supplemental_groups: The supplemental_groups of this V1PodSecurityContext. :type: list[int] """ self._supplemental_groups = supplemental_groups @property def fs_group(self): """ Gets the fs_group of this V1PodSecurityContext. A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw :return: The fs_group of this V1PodSecurityContext. :rtype: int """ return self._fs_group @fs_group.setter def fs_group(self, fs_group): """ Sets the fs_group of this V1PodSecurityContext. A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw :param fs_group: The fs_group of this V1PodSecurityContext. :type: int """ self._fs_group = fs_group def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_ingress.py0000664000567000056710000001522113046233226031307 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1Ingress(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1beta1IngressSpec', 'status': 'V1beta1IngressStatus' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status' } self._kind = None self._api_version = None self._metadata = None self._spec = None self._status = None @property def kind(self): """ Gets the kind of this V1beta1Ingress. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1beta1Ingress. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1beta1Ingress. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1beta1Ingress. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1beta1Ingress. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1beta1Ingress. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1beta1Ingress. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1beta1Ingress. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1beta1Ingress. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1beta1Ingress. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1beta1Ingress. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1beta1Ingress. :type: V1ObjectMeta """ self._metadata = metadata @property def spec(self): """ Gets the spec of this V1beta1Ingress. Spec is the desired state of the Ingress. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V1beta1Ingress. :rtype: V1beta1IngressSpec """ return self._spec @spec.setter def spec(self, spec): """ Sets the spec of this V1beta1Ingress. Spec is the desired state of the Ingress. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V1beta1Ingress. :type: V1beta1IngressSpec """ self._spec = spec @property def status(self): """ Gets the status of this V1beta1Ingress. Status is the current state of the Ingress. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The status of this V1beta1Ingress. :rtype: V1beta1IngressStatus """ return self._status @status.setter def status(self, status): """ Sets the status of this V1beta1Ingress. Status is the current state of the Ingress. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param status: The status of this V1beta1Ingress. :type: V1beta1IngressStatus """ self._status = status def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_ingress_rule.py0000664000567000056710000001061613046233226032341 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1IngressRule(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'host': 'str', 'http': 'V1beta1HTTPIngressRuleValue' } self.attribute_map = { 'host': 'host', 'http': 'http' } self._host = None self._http = None @property def host(self): """ Gets the host of this V1beta1IngressRule. Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the\n IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n Currently the port of an Ingress is implicitly :80 for http and\n :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. :return: The host of this V1beta1IngressRule. :rtype: str """ return self._host @host.setter def host(self, host): """ Sets the host of this V1beta1IngressRule. Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the\n IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n Currently the port of an Ingress is implicitly :80 for http and\n :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. :param host: The host of this V1beta1IngressRule. :type: str """ self._host = host @property def http(self): """ Gets the http of this V1beta1IngressRule. :return: The http of this V1beta1IngressRule. :rtype: V1beta1HTTPIngressRuleValue """ return self._http @http.setter def http(self, http): """ Sets the http of this V1beta1IngressRule. :param http: The http of this V1beta1IngressRule. :type: V1beta1HTTPIngressRuleValue """ self._http = http def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_exec_action.py0000664000567000056710000000652713046233226031212 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ExecAction(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'command': 'list[str]' } self.attribute_map = { 'command': 'command' } self._command = None @property def command(self): """ Gets the command of this V1ExecAction. Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. :return: The command of this V1ExecAction. :rtype: list[str] """ return self._command @command.setter def command(self, command): """ Sets the command of this V1ExecAction. Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. :param command: The command of this V1ExecAction. :type: list[str] """ self._command = command def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_capability.py0000664000567000056710000000404013046233226031036 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Capability(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { } self.attribute_map = { } def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_fc_volume_source.py0000664000567000056710000001176513046233226032270 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1FCVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'target_ww_ns': 'list[str]', 'lun': 'int', 'fs_type': 'str', 'read_only': 'bool' } self.attribute_map = { 'target_ww_ns': 'targetWWNs', 'lun': 'lun', 'fs_type': 'fsType', 'read_only': 'readOnly' } self._target_ww_ns = None self._lun = None self._fs_type = None self._read_only = None @property def target_ww_ns(self): """ Gets the target_ww_ns of this V1FCVolumeSource. Required: FC target world wide names (WWNs) :return: The target_ww_ns of this V1FCVolumeSource. :rtype: list[str] """ return self._target_ww_ns @target_ww_ns.setter def target_ww_ns(self, target_ww_ns): """ Sets the target_ww_ns of this V1FCVolumeSource. Required: FC target world wide names (WWNs) :param target_ww_ns: The target_ww_ns of this V1FCVolumeSource. :type: list[str] """ self._target_ww_ns = target_ww_ns @property def lun(self): """ Gets the lun of this V1FCVolumeSource. Required: FC target lun number :return: The lun of this V1FCVolumeSource. :rtype: int """ return self._lun @lun.setter def lun(self, lun): """ Sets the lun of this V1FCVolumeSource. Required: FC target lun number :param lun: The lun of this V1FCVolumeSource. :type: int """ self._lun = lun @property def fs_type(self): """ Gets the fs_type of this V1FCVolumeSource. Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. :return: The fs_type of this V1FCVolumeSource. :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): """ Sets the fs_type of this V1FCVolumeSource. Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. :param fs_type: The fs_type of this V1FCVolumeSource. :type: str """ self._fs_type = fs_type @property def read_only(self): """ Gets the read_only of this V1FCVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. :return: The read_only of this V1FCVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1FCVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. :param read_only: The read_only of this V1FCVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_pod_template_spec.py0000664000567000056710000000721613046233226032414 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1PodTemplateSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'metadata': 'V1ObjectMeta', 'spec': 'V1PodSpec' } self.attribute_map = { 'metadata': 'metadata', 'spec': 'spec' } self._metadata = None self._spec = None @property def metadata(self): """ Gets the metadata of this V1PodTemplateSpec. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1PodTemplateSpec. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1PodTemplateSpec. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1PodTemplateSpec. :type: V1ObjectMeta """ self._metadata = metadata @property def spec(self): """ Gets the spec of this V1PodTemplateSpec. Specification of the desired behavior of the pod. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V1PodTemplateSpec. :rtype: V1PodSpec """ return self._spec @spec.setter def spec(self, spec): """ Sets the spec of this V1PodTemplateSpec. Specification of the desired behavior of the pod. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V1PodTemplateSpec. :type: V1PodSpec """ self._spec = spec def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_rollback_config.py0000664000567000056710000000537213046233226032761 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1RollbackConfig(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'revision': 'int' } self.attribute_map = { 'revision': 'revision' } self._revision = None @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): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_secret_volume_source.py0000664000567000056710000000563213046233226033161 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1SecretVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'secret_name': 'str' } self.attribute_map = { 'secret_name': 'secretName' } self._secret_name = None @property def secret_name(self): """ Gets the secret_name of this V1SecretVolumeSource. Name of the secret in the pod's namespace to use. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets :return: The secret_name of this V1SecretVolumeSource. :rtype: str """ return self._secret_name @secret_name.setter def secret_name(self, secret_name): """ Sets the secret_name of this V1SecretVolumeSource. Name of the secret in the pod's namespace to use. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets :param secret_name: The secret_name of this V1SecretVolumeSource. :type: str """ self._secret_name = secret_name def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_replica_set.py0000664000567000056710000001634613046233226032140 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1ReplicaSet(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1beta1ReplicaSetSpec', 'status': 'V1beta1ReplicaSetStatus' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status' } self._kind = None self._api_version = None self._metadata = None self._spec = None self._status = None @property def kind(self): """ Gets the kind of this V1beta1ReplicaSet. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1beta1ReplicaSet. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1beta1ReplicaSet. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1beta1ReplicaSet. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1beta1ReplicaSet. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1beta1ReplicaSet. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1beta1ReplicaSet. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1beta1ReplicaSet. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1beta1ReplicaSet. If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1beta1ReplicaSet. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1beta1ReplicaSet. If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1beta1ReplicaSet. :type: V1ObjectMeta """ self._metadata = metadata @property def spec(self): """ Gets the spec of this V1beta1ReplicaSet. Spec defines the specification of the desired behavior of the ReplicaSet. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V1beta1ReplicaSet. :rtype: V1beta1ReplicaSetSpec """ return self._spec @spec.setter def spec(self, spec): """ Sets the spec of this V1beta1ReplicaSet. Spec defines the specification of the desired behavior of the ReplicaSet. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V1beta1ReplicaSet. :type: V1beta1ReplicaSetSpec """ self._spec = spec @property def status(self): """ Gets the status of this V1beta1ReplicaSet. Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The status of this V1beta1ReplicaSet. :rtype: V1beta1ReplicaSetStatus """ return self._status @status.setter def status(self, status): """ Sets the status of this V1beta1ReplicaSet. Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param status: The status of this V1beta1ReplicaSet. :type: V1beta1ReplicaSetStatus """ self._status = status def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_capabilities.py0000664000567000056710000000624213046233226031354 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Capabilities(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'add': 'list[V1Capability]', 'drop': 'list[V1Capability]' } self.attribute_map = { 'add': 'add', 'drop': 'drop' } self._add = None self._drop = None @property def add(self): """ Gets the add of this V1Capabilities. Added capabilities :return: The add of this V1Capabilities. :rtype: list[V1Capability] """ return self._add @add.setter def add(self, add): """ Sets the add of this V1Capabilities. Added capabilities :param add: The add of this V1Capabilities. :type: list[V1Capability] """ self._add = add @property def drop(self): """ Gets the drop of this V1Capabilities. Removed capabilities :return: The drop of this V1Capabilities. :rtype: list[V1Capability] """ return self._drop @drop.setter def drop(self, drop): """ Sets the drop of this V1Capabilities. Removed capabilities :param drop: The drop of this V1Capabilities. :type: list[V1Capability] """ self._drop = drop def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_probe.py0000664000567000056710000002164313046233226030034 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Probe(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { '_exec': 'V1ExecAction', 'http_get': 'V1HTTPGetAction', 'tcp_socket': 'V1TCPSocketAction', 'initial_delay_seconds': 'int', 'timeout_seconds': 'int', 'period_seconds': 'int', 'success_threshold': 'int', 'failure_threshold': 'int' } self.attribute_map = { '_exec': 'exec', 'http_get': 'httpGet', 'tcp_socket': 'tcpSocket', 'initial_delay_seconds': 'initialDelaySeconds', 'timeout_seconds': 'timeoutSeconds', 'period_seconds': 'periodSeconds', 'success_threshold': 'successThreshold', 'failure_threshold': 'failureThreshold' } self.__exec = None self._http_get = None self._tcp_socket = None self._initial_delay_seconds = None self._timeout_seconds = None self._period_seconds = None self._success_threshold = None self._failure_threshold = None @property def _exec(self): """ Gets the _exec of this V1Probe. One and only one of the following should be specified. Exec specifies the action to take. :return: The _exec of this V1Probe. :rtype: V1ExecAction """ return self.__exec @_exec.setter def _exec(self, _exec): """ Sets the _exec of this V1Probe. One and only one of the following should be specified. Exec specifies the action to take. :param _exec: The _exec of this V1Probe. :type: V1ExecAction """ self.__exec = _exec @property def http_get(self): """ Gets the http_get of this V1Probe. HTTPGet specifies the http request to perform. :return: The http_get of this V1Probe. :rtype: V1HTTPGetAction """ return self._http_get @http_get.setter def http_get(self, http_get): """ Sets the http_get of this V1Probe. HTTPGet specifies the http request to perform. :param http_get: The http_get of this V1Probe. :type: V1HTTPGetAction """ self._http_get = http_get @property def tcp_socket(self): """ Gets the tcp_socket of this V1Probe. TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported :return: The tcp_socket of this V1Probe. :rtype: V1TCPSocketAction """ return self._tcp_socket @tcp_socket.setter def tcp_socket(self, tcp_socket): """ Sets the tcp_socket of this V1Probe. TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported :param tcp_socket: The tcp_socket of this V1Probe. :type: V1TCPSocketAction """ self._tcp_socket = tcp_socket @property def initial_delay_seconds(self): """ Gets the initial_delay_seconds of this V1Probe. Number of seconds after the container has started before liveness probes are initiated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :return: The initial_delay_seconds of this V1Probe. :rtype: int """ return self._initial_delay_seconds @initial_delay_seconds.setter def initial_delay_seconds(self, initial_delay_seconds): """ Sets the initial_delay_seconds of this V1Probe. Number of seconds after the container has started before liveness probes are initiated. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :param initial_delay_seconds: The initial_delay_seconds of this V1Probe. :type: int """ self._initial_delay_seconds = initial_delay_seconds @property def timeout_seconds(self): """ Gets the timeout_seconds of this V1Probe. Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :return: The timeout_seconds of this V1Probe. :rtype: int """ return self._timeout_seconds @timeout_seconds.setter def timeout_seconds(self, timeout_seconds): """ Sets the timeout_seconds of this V1Probe. Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://releases.k8s.io/release-1.2/docs/user-guide/pod-states.md#container-probes :param timeout_seconds: The timeout_seconds of this V1Probe. :type: int """ self._timeout_seconds = timeout_seconds @property def period_seconds(self): """ Gets the period_seconds of this V1Probe. How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. :return: The period_seconds of this V1Probe. :rtype: int """ return self._period_seconds @period_seconds.setter def period_seconds(self, period_seconds): """ Sets the period_seconds of this V1Probe. How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. :param period_seconds: The period_seconds of this V1Probe. :type: int """ self._period_seconds = period_seconds @property def success_threshold(self): """ Gets the success_threshold of this V1Probe. Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. :return: The success_threshold of this V1Probe. :rtype: int """ return self._success_threshold @success_threshold.setter def success_threshold(self, success_threshold): """ Sets the success_threshold of this V1Probe. Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. :param success_threshold: The success_threshold of this V1Probe. :type: int """ self._success_threshold = success_threshold @property def failure_threshold(self): """ Gets the failure_threshold of this V1Probe. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. :return: The failure_threshold of this V1Probe. :rtype: int """ return self._failure_threshold @failure_threshold.setter def failure_threshold(self, failure_threshold): """ Sets the failure_threshold of this V1Probe. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. :param failure_threshold: The failure_threshold of this V1Probe. :type: int """ self._failure_threshold = failure_threshold def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_ingress_list.py0000664000567000056710000001331413046233226032343 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1IngressList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'items': 'list[V1beta1Ingress]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'items': 'items' } self._kind = None self._api_version = None self._metadata = None self._items = None @property def kind(self): """ Gets the kind of this V1beta1IngressList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1beta1IngressList. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1beta1IngressList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1beta1IngressList. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1beta1IngressList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1beta1IngressList. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1beta1IngressList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1beta1IngressList. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1beta1IngressList. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1beta1IngressList. :rtype: UnversionedListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1beta1IngressList. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1beta1IngressList. :type: UnversionedListMeta """ self._metadata = metadata @property def items(self): """ Gets the items of this V1beta1IngressList. Items is the list of Ingress. :return: The items of this V1beta1IngressList. :rtype: list[V1beta1Ingress] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1beta1IngressList. Items is the list of Ingress. :param items: The items of this V1beta1IngressList. :type: list[V1beta1Ingress] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_azure_file_volume_source.py0000664000567000056710000001037213046233226034016 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1AzureFileVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'secret_name': 'str', 'share_name': 'str', 'read_only': 'bool' } self.attribute_map = { 'secret_name': 'secretName', 'share_name': 'shareName', 'read_only': 'readOnly' } self._secret_name = None self._share_name = None self._read_only = None @property def secret_name(self): """ Gets the secret_name of this V1AzureFileVolumeSource. the name of secret that contains Azure Storage Account Name and Key :return: The secret_name of this V1AzureFileVolumeSource. :rtype: str """ return self._secret_name @secret_name.setter def secret_name(self, secret_name): """ Sets the secret_name of this V1AzureFileVolumeSource. the name of secret that contains Azure Storage Account Name and Key :param secret_name: The secret_name of this V1AzureFileVolumeSource. :type: str """ self._secret_name = secret_name @property def share_name(self): """ Gets the share_name of this V1AzureFileVolumeSource. Share Name :return: The share_name of this V1AzureFileVolumeSource. :rtype: str """ return self._share_name @share_name.setter def share_name(self, share_name): """ Sets the share_name of this V1AzureFileVolumeSource. Share Name :param share_name: The share_name of this V1AzureFileVolumeSource. :type: str """ self._share_name = share_name @property def read_only(self): """ Gets the read_only of this V1AzureFileVolumeSource. Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. :return: The read_only of this V1AzureFileVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1AzureFileVolumeSource. Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. :param read_only: The read_only of this V1AzureFileVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/json_watch_event.py0000664000567000056710000000662213046233226031657 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class JsonWatchEvent(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'type': 'str', 'object': 'str' } self.attribute_map = { 'type': 'type', 'object': 'object' } self._type = None self._object = None @property def type(self): """ Gets the type of this JsonWatchEvent. the type of watch event; may be ADDED, MODIFIED, DELETED, or ERROR :return: The type of this JsonWatchEvent. :rtype: str """ return self._type @type.setter def type(self, type): """ Sets the type of this JsonWatchEvent. the type of watch event; may be ADDED, MODIFIED, DELETED, or ERROR :param type: The type of this JsonWatchEvent. :type: str """ self._type = type @property def object(self): """ Gets the object of this JsonWatchEvent. the object being watched; will match the type of the resource endpoint or be a Status object if the type is ERROR :return: The object of this JsonWatchEvent. :rtype: str """ return self._object @object.setter def object(self, object): """ Sets the object of this JsonWatchEvent. the object being watched; will match the type of the resource endpoint or be a Status object if the type is ERROR :param object: The object of this JsonWatchEvent. :type: str """ self._object = object def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/unversioned_status_details.py0000664000567000056710000001450613046233226033770 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class UnversionedStatusDetails(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'group': 'str', 'kind': 'str', 'causes': 'list[UnversionedStatusCause]', 'retry_after_seconds': 'int' } self.attribute_map = { 'name': 'name', 'group': 'group', 'kind': 'kind', 'causes': 'causes', 'retry_after_seconds': 'retryAfterSeconds' } self._name = None self._group = None self._kind = None self._causes = None self._retry_after_seconds = None @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 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/release-1.2/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/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this UnversionedStatusDetails. :type: str """ self._kind = kind @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 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): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_label_selector_requirement.py0000664000567000056710000001115613046233226035237 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1LabelSelectorRequirement(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'key': 'str', 'operator': 'str', 'values': 'list[str]' } self.attribute_map = { 'key': 'key', 'operator': 'operator', 'values': 'values' } self._key = None self._operator = None self._values = None @property def key(self): """ Gets the key of this V1beta1LabelSelectorRequirement. key is the label key that the selector applies to. :return: The key of this V1beta1LabelSelectorRequirement. :rtype: str """ return self._key @key.setter def key(self, key): """ Sets the key of this V1beta1LabelSelectorRequirement. key is the label key that the selector applies to. :param key: The key of this V1beta1LabelSelectorRequirement. :type: str """ self._key = key @property def operator(self): """ Gets the operator of this V1beta1LabelSelectorRequirement. operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist. :return: The operator of this V1beta1LabelSelectorRequirement. :rtype: str """ return self._operator @operator.setter def operator(self, operator): """ Sets the operator of this V1beta1LabelSelectorRequirement. 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 V1beta1LabelSelectorRequirement. :type: str """ self._operator = operator @property def values(self): """ Gets the values of this V1beta1LabelSelectorRequirement. 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 V1beta1LabelSelectorRequirement. :rtype: list[str] """ return self._values @values.setter def values(self, values): """ Sets the values of this V1beta1LabelSelectorRequirement. 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 V1beta1LabelSelectorRequirement. :type: list[str] """ self._values = values def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_deployment_status.py0000664000567000056710000001471613046233226033430 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1DeploymentStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'observed_generation': 'int', 'replicas': 'int', 'updated_replicas': 'int', 'available_replicas': 'int', 'unavailable_replicas': 'int' } self.attribute_map = { 'observed_generation': 'observedGeneration', 'replicas': 'replicas', 'updated_replicas': 'updatedReplicas', 'available_replicas': 'availableReplicas', 'unavailable_replicas': 'unavailableReplicas' } self._observed_generation = None self._replicas = None self._updated_replicas = None self._available_replicas = None self._unavailable_replicas = None @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 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 @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 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 def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_flocker_volume_source.py0000664000567000056710000000556113046233226033322 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1FlockerVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'dataset_name': 'str' } self.attribute_map = { 'dataset_name': 'datasetName' } self._dataset_name = None @property def dataset_name(self): """ Gets the dataset_name of this V1FlockerVolumeSource. Required: the volume name. This is going to be store on metadata -> name on the payload for Flocker :return: The dataset_name of this V1FlockerVolumeSource. :rtype: str """ return self._dataset_name @dataset_name.setter def dataset_name(self, dataset_name): """ Sets the dataset_name of this V1FlockerVolumeSource. Required: the volume name. This is going to be store on metadata -> name on the payload for Flocker :param dataset_name: The dataset_name of this V1FlockerVolumeSource. :type: str """ self._dataset_name = dataset_name def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_downward_api_volume_file.py0000664000567000056710000000746213046233226033774 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1DownwardAPIVolumeFile(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'path': 'str', 'field_ref': 'V1ObjectFieldSelector' } self.attribute_map = { 'path': 'path', 'field_ref': 'fieldRef' } self._path = None self._field_ref = None @property def path(self): """ Gets the path of this V1DownwardAPIVolumeFile. Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' :return: The path of this V1DownwardAPIVolumeFile. :rtype: str """ return self._path @path.setter def path(self, path): """ Sets the path of this V1DownwardAPIVolumeFile. Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' :param path: The path of this V1DownwardAPIVolumeFile. :type: str """ self._path = path @property def field_ref(self): """ Gets the field_ref of this V1DownwardAPIVolumeFile. Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. :return: The field_ref of this V1DownwardAPIVolumeFile. :rtype: V1ObjectFieldSelector """ return self._field_ref @field_ref.setter def field_ref(self, field_ref): """ Sets the field_ref of this V1DownwardAPIVolumeFile. Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. :param field_ref: The field_ref of this V1DownwardAPIVolumeFile. :type: V1ObjectFieldSelector """ self._field_ref = field_ref def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_load_balancer_ingress.py0000664000567000056710000000677713046233226033240 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1LoadBalancerIngress(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'ip': 'str', 'hostname': 'str' } self.attribute_map = { 'ip': 'ip', 'hostname': 'hostname' } self._ip = None self._hostname = None @property def ip(self): """ Gets the ip of this V1LoadBalancerIngress. IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) :return: The ip of this V1LoadBalancerIngress. :rtype: str """ return self._ip @ip.setter def ip(self, ip): """ Sets the ip of this V1LoadBalancerIngress. IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) :param ip: The ip of this V1LoadBalancerIngress. :type: str """ self._ip = ip @property def hostname(self): """ Gets the hostname of this V1LoadBalancerIngress. Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) :return: The hostname of this V1LoadBalancerIngress. :rtype: str """ return self._hostname @hostname.setter def hostname(self, hostname): """ Sets the hostname of this V1LoadBalancerIngress. Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) :param hostname: The hostname of this V1LoadBalancerIngress. :type: str """ self._hostname = hostname def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_delete_options.py0000664000567000056710000001304513046233226031737 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1DeleteOptions(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'grace_period_seconds': 'int' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'grace_period_seconds': 'gracePeriodSeconds' } self._kind = None self._api_version = None self._grace_period_seconds = None @property def kind(self): """ Gets the kind of this V1DeleteOptions. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1DeleteOptions. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1DeleteOptions. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1DeleteOptions. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1DeleteOptions. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1DeleteOptions. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1DeleteOptions. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1DeleteOptions. :type: str """ self._api_version = api_version @property def grace_period_seconds(self): """ Gets the grace_period_seconds of this V1DeleteOptions. The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :return: The grace_period_seconds of this V1DeleteOptions. :rtype: int """ return self._grace_period_seconds @grace_period_seconds.setter def grace_period_seconds(self, grace_period_seconds): """ Sets the grace_period_seconds of this V1DeleteOptions. The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param grace_period_seconds: The grace_period_seconds of this V1DeleteOptions. :type: int """ self._grace_period_seconds = grace_period_seconds def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_deployment_strategy.py0000664000567000056710000000726713046233226033752 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1DeploymentStrategy(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'type': 'str', 'rolling_update': 'V1beta1RollingUpdateDeployment' } self.attribute_map = { 'type': 'type', 'rolling_update': 'rollingUpdate' } self._type = None self._rolling_update = None @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 @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 def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() ././@LongLink0000000000000000000000000000015300000000000011214 Lustar 00000000000000python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_aws_elastic_block_store_volume_source.pypython-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_aws_elastic_block_store_volume_sou0000664000567000056710000001500613046233226035433 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1AWSElasticBlockStoreVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'volume_id': 'str', 'fs_type': 'str', 'partition': 'int', 'read_only': 'bool' } self.attribute_map = { 'volume_id': 'volumeID', 'fs_type': 'fsType', 'partition': 'partition', 'read_only': 'readOnly' } self._volume_id = None self._fs_type = None self._partition = None self._read_only = None @property def volume_id(self): """ Gets the volume_id of this V1AWSElasticBlockStoreVolumeSource. Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :return: The volume_id of this V1AWSElasticBlockStoreVolumeSource. :rtype: str """ return self._volume_id @volume_id.setter def volume_id(self, volume_id): """ Sets the volume_id of this V1AWSElasticBlockStoreVolumeSource. Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :param volume_id: The volume_id of this V1AWSElasticBlockStoreVolumeSource. :type: str """ self._volume_id = volume_id @property def fs_type(self): """ Gets the fs_type of this V1AWSElasticBlockStoreVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :return: The fs_type of this V1AWSElasticBlockStoreVolumeSource. :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): """ Sets the fs_type of this V1AWSElasticBlockStoreVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :param fs_type: The fs_type of this V1AWSElasticBlockStoreVolumeSource. :type: str """ self._fs_type = fs_type @property def partition(self): """ Gets the partition of this V1AWSElasticBlockStoreVolumeSource. The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). :return: The partition of this V1AWSElasticBlockStoreVolumeSource. :rtype: int """ return self._partition @partition.setter def partition(self, partition): """ Sets the partition of this V1AWSElasticBlockStoreVolumeSource. The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). :param partition: The partition of this V1AWSElasticBlockStoreVolumeSource. :type: int """ self._partition = partition @property def read_only(self): """ Gets the read_only of this V1AWSElasticBlockStoreVolumeSource. Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :return: The read_only of this V1AWSElasticBlockStoreVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1AWSElasticBlockStoreVolumeSource. Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :param read_only: The read_only of this V1AWSElasticBlockStoreVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_secret_key_selector.py0000664000567000056710000000657513046233226032771 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1SecretKeySelector(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'key': 'str' } self.attribute_map = { 'name': 'name', 'key': 'key' } self._name = None self._key = None @property def name(self): """ Gets the name of this V1SecretKeySelector. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :return: The name of this V1SecretKeySelector. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1SecretKeySelector. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1SecretKeySelector. :type: str """ self._name = name @property def key(self): """ Gets the key of this V1SecretKeySelector. The key of the secret to select from. Must be a valid secret key. :return: The key of this V1SecretKeySelector. :rtype: str """ return self._key @key.setter def key(self, key): """ Sets the key of this V1SecretKeySelector. The key of the secret to select from. Must be a valid secret key. :param key: The key of this V1SecretKeySelector. :type: str """ self._key = key def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_subresource_reference.py0000664000567000056710000001176213046233226034222 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1SubresourceReference(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'name': 'str', 'api_version': 'str', 'subresource': 'str' } self.attribute_map = { 'kind': 'kind', 'name': 'name', 'api_version': 'apiVersion', 'subresource': 'subresource' } self._kind = None self._name = None self._api_version = None self._subresource = None @property def kind(self): """ Gets the kind of this V1beta1SubresourceReference. Kind of the referent; More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds\" :return: The kind of this 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/release-1.2/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://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#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://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1beta1SubresourceReference. :type: str """ self._name = name @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 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): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_job.py0000664000567000056710000001514713046233226030416 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1Job(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1beta1JobSpec', 'status': 'V1beta1JobStatus' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status' } self._kind = None self._api_version = None self._metadata = None self._spec = None self._status = None @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/release-1.2/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/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1beta1Job. :type: str """ self._kind = kind @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/release-1.2/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/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1beta1Job. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1beta1Job. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/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/release-1.2/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/release-1.2/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/release-1.2/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/release-1.2/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/release-1.2/docs/devel/api-conventions.md#spec-and-status :param status: The status of this V1beta1Job. :type: V1beta1JobStatus """ self._status = status def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_downward_api_volume_source.py0000664000567000056710000000536413046233226034354 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1DownwardAPIVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'items': 'list[V1DownwardAPIVolumeFile]' } self.attribute_map = { 'items': 'items' } self._items = None @property def items(self): """ Gets the items of this V1DownwardAPIVolumeSource. Items is a list of downward API volume file :return: The items of this V1DownwardAPIVolumeSource. :rtype: list[V1DownwardAPIVolumeFile] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1DownwardAPIVolumeSource. Items is a list of downward API volume file :param items: The items of this V1DownwardAPIVolumeSource. :type: list[V1DownwardAPIVolumeFile] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_http_ingress_rule_value.py0000664000567000056710000000541513046233226034575 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1HTTPIngressRuleValue(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'paths': 'list[V1beta1HTTPIngressPath]' } self.attribute_map = { 'paths': 'paths' } self._paths = None @property def paths(self): """ Gets the paths of this V1beta1HTTPIngressRuleValue. A collection of paths that map requests to backends. :return: The paths of this V1beta1HTTPIngressRuleValue. :rtype: list[V1beta1HTTPIngressPath] """ return self._paths @paths.setter def paths(self, paths): """ Sets the paths of this V1beta1HTTPIngressRuleValue. A collection of paths that map requests to backends. :param paths: The paths of this V1beta1HTTPIngressRuleValue. :type: list[V1beta1HTTPIngressPath] """ self._paths = paths def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_replica_set_status.py0000664000567000056710000001163113046233226033533 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1ReplicaSetStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'replicas': 'int', 'fully_labeled_replicas': 'int', 'observed_generation': 'int' } self.attribute_map = { 'replicas': 'replicas', 'fully_labeled_replicas': 'fullyLabeledReplicas', 'observed_generation': 'observedGeneration' } self._replicas = None self._fully_labeled_replicas = None self._observed_generation = None @property def replicas(self): """ Gets the replicas of this V1beta1ReplicaSetStatus. Replicas is the most recently oberved number of replicas. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#what-is-a-replication-controller :return: The replicas of this V1beta1ReplicaSetStatus. :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): """ Sets the replicas of this V1beta1ReplicaSetStatus. Replicas is the most recently oberved number of replicas. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#what-is-a-replication-controller :param replicas: The replicas of this V1beta1ReplicaSetStatus. :type: int """ self._replicas = replicas @property def fully_labeled_replicas(self): """ Gets the fully_labeled_replicas of this V1beta1ReplicaSetStatus. The number of pods that have labels matching the labels of the pod template of the replicaset. :return: The fully_labeled_replicas of this V1beta1ReplicaSetStatus. :rtype: int """ return self._fully_labeled_replicas @fully_labeled_replicas.setter def fully_labeled_replicas(self, fully_labeled_replicas): """ Sets the fully_labeled_replicas of this V1beta1ReplicaSetStatus. The number of pods that have labels matching the labels of the pod template of the replicaset. :param fully_labeled_replicas: The fully_labeled_replicas of this V1beta1ReplicaSetStatus. :type: int """ self._fully_labeled_replicas = fully_labeled_replicas @property def observed_generation(self): """ Gets the observed_generation of this V1beta1ReplicaSetStatus. ObservedGeneration reflects the generation of the most recently observed ReplicaSet. :return: The observed_generation of this V1beta1ReplicaSetStatus. :rtype: int """ return self._observed_generation @observed_generation.setter def observed_generation(self, observed_generation): """ Sets the observed_generation of this V1beta1ReplicaSetStatus. ObservedGeneration reflects the generation of the most recently observed ReplicaSet. :param observed_generation: The observed_generation of this V1beta1ReplicaSetStatus. :type: int """ self._observed_generation = observed_generation def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_horizontal_pod_autoscaler.py0000664000567000056710000001554113046233226035117 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1HorizontalPodAutoscaler(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1beta1HorizontalPodAutoscalerSpec', 'status': 'V1beta1HorizontalPodAutoscalerStatus' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status' } self._kind = None self._api_version = None self._metadata = None self._spec = None self._status = None @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/release-1.2/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/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1beta1HorizontalPodAutoscaler. :type: str """ self._kind = kind @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/release-1.2/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/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1beta1HorizontalPodAutoscaler. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1beta1HorizontalPodAutoscaler. Standard object metadata. More info: http://releases.k8s.io/release-1.2/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/release-1.2/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/release-1.2/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/release-1.2/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): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_git_repo_volume_source.py0000664000567000056710000001064213046233226033501 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1GitRepoVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'repository': 'str', 'revision': 'str', 'directory': 'str' } self.attribute_map = { 'repository': 'repository', 'revision': 'revision', 'directory': 'directory' } self._repository = None self._revision = None self._directory = None @property def repository(self): """ Gets the repository of this V1GitRepoVolumeSource. Repository URL :return: The repository of this V1GitRepoVolumeSource. :rtype: str """ return self._repository @repository.setter def repository(self, repository): """ Sets the repository of this V1GitRepoVolumeSource. Repository URL :param repository: The repository of this V1GitRepoVolumeSource. :type: str """ self._repository = repository @property def revision(self): """ Gets the revision of this V1GitRepoVolumeSource. Commit hash for the specified revision. :return: The revision of this V1GitRepoVolumeSource. :rtype: str """ return self._revision @revision.setter def revision(self, revision): """ Sets the revision of this V1GitRepoVolumeSource. Commit hash for the specified revision. :param revision: The revision of this V1GitRepoVolumeSource. :type: str """ self._revision = revision @property def directory(self): """ Gets the directory of this V1GitRepoVolumeSource. Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. :return: The directory of this V1GitRepoVolumeSource. :rtype: str """ return self._directory @directory.setter def directory(self, directory): """ Sets the directory of this V1GitRepoVolumeSource. Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. :param directory: The directory of this V1GitRepoVolumeSource. :type: str """ self._directory = directory def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_env_var_source.py0000664000567000056710000001062613046233226031744 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1EnvVarSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'field_ref': 'V1ObjectFieldSelector', 'config_map_key_ref': 'V1ConfigMapKeySelector', 'secret_key_ref': 'V1SecretKeySelector' } self.attribute_map = { 'field_ref': 'fieldRef', 'config_map_key_ref': 'configMapKeyRef', 'secret_key_ref': 'secretKeyRef' } self._field_ref = None self._config_map_key_ref = None self._secret_key_ref = None @property def field_ref(self): """ Gets the field_ref of this V1EnvVarSource. Selects a field of the pod; only name and namespace are supported. :return: The field_ref of this V1EnvVarSource. :rtype: V1ObjectFieldSelector """ return self._field_ref @field_ref.setter def field_ref(self, field_ref): """ Sets the field_ref of this V1EnvVarSource. Selects a field of the pod; only name and namespace are supported. :param field_ref: The field_ref of this V1EnvVarSource. :type: V1ObjectFieldSelector """ self._field_ref = field_ref @property def config_map_key_ref(self): """ Gets the config_map_key_ref of this V1EnvVarSource. Selects a key of a ConfigMap. :return: The config_map_key_ref of this V1EnvVarSource. :rtype: V1ConfigMapKeySelector """ return self._config_map_key_ref @config_map_key_ref.setter def config_map_key_ref(self, config_map_key_ref): """ Sets the config_map_key_ref of this V1EnvVarSource. Selects a key of a ConfigMap. :param config_map_key_ref: The config_map_key_ref of this V1EnvVarSource. :type: V1ConfigMapKeySelector """ self._config_map_key_ref = config_map_key_ref @property def secret_key_ref(self): """ Gets the secret_key_ref of this V1EnvVarSource. Selects a key of a secret in the pod's namespace :return: The secret_key_ref of this V1EnvVarSource. :rtype: V1SecretKeySelector """ return self._secret_key_ref @secret_key_ref.setter def secret_key_ref(self, secret_key_ref): """ Sets the secret_key_ref of this V1EnvVarSource. Selects a key of a secret in the pod's namespace :param secret_key_ref: The secret_key_ref of this V1EnvVarSource. :type: V1SecretKeySelector """ self._secret_key_ref = secret_key_ref def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_volume.py0000664000567000056710000005021613046233226030232 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Volume(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'host_path': 'V1HostPathVolumeSource', 'empty_dir': 'V1EmptyDirVolumeSource', 'gce_persistent_disk': 'V1GCEPersistentDiskVolumeSource', 'aws_elastic_block_store': 'V1AWSElasticBlockStoreVolumeSource', 'git_repo': 'V1GitRepoVolumeSource', 'secret': 'V1SecretVolumeSource', 'nfs': 'V1NFSVolumeSource', 'iscsi': 'V1ISCSIVolumeSource', 'glusterfs': 'V1GlusterfsVolumeSource', 'persistent_volume_claim': 'V1PersistentVolumeClaimVolumeSource', 'rbd': 'V1RBDVolumeSource', 'flex_volume': 'V1FlexVolumeSource', 'cinder': 'V1CinderVolumeSource', 'cephfs': 'V1CephFSVolumeSource', 'flocker': 'V1FlockerVolumeSource', 'downward_api': 'V1DownwardAPIVolumeSource', 'fc': 'V1FCVolumeSource', 'azure_file': 'V1AzureFileVolumeSource', 'config_map': 'V1ConfigMapVolumeSource' } self.attribute_map = { 'name': 'name', 'host_path': 'hostPath', 'empty_dir': 'emptyDir', 'gce_persistent_disk': 'gcePersistentDisk', 'aws_elastic_block_store': 'awsElasticBlockStore', 'git_repo': 'gitRepo', 'secret': 'secret', 'nfs': 'nfs', 'iscsi': 'iscsi', 'glusterfs': 'glusterfs', 'persistent_volume_claim': 'persistentVolumeClaim', 'rbd': 'rbd', 'flex_volume': 'flexVolume', 'cinder': 'cinder', 'cephfs': 'cephfs', 'flocker': 'flocker', 'downward_api': 'downwardAPI', 'fc': 'fc', 'azure_file': 'azureFile', 'config_map': 'configMap' } self._name = None self._host_path = None self._empty_dir = None self._gce_persistent_disk = None self._aws_elastic_block_store = None self._git_repo = None self._secret = None self._nfs = None self._iscsi = None self._glusterfs = None self._persistent_volume_claim = None self._rbd = None self._flex_volume = None self._cinder = None self._cephfs = None self._flocker = None self._downward_api = None self._fc = None self._azure_file = None self._config_map = None @property def name(self): """ Gets the name of this V1Volume. Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :return: The name of this V1Volume. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1Volume. Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1Volume. :type: str """ self._name = name @property def host_path(self): """ Gets the host_path of this V1Volume. HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath :return: The host_path of this V1Volume. :rtype: V1HostPathVolumeSource """ return self._host_path @host_path.setter def host_path(self, host_path): """ Sets the host_path of this V1Volume. HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath :param host_path: The host_path of this V1Volume. :type: V1HostPathVolumeSource """ self._host_path = host_path @property def empty_dir(self): """ Gets the empty_dir of this V1Volume. EmptyDir represents a temporary directory that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir :return: The empty_dir of this V1Volume. :rtype: V1EmptyDirVolumeSource """ return self._empty_dir @empty_dir.setter def empty_dir(self, empty_dir): """ Sets the empty_dir of this V1Volume. EmptyDir represents a temporary directory that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir :param empty_dir: The empty_dir of this V1Volume. :type: V1EmptyDirVolumeSource """ self._empty_dir = empty_dir @property def gce_persistent_disk(self): """ Gets the gce_persistent_disk of this V1Volume. GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :return: The gce_persistent_disk of this V1Volume. :rtype: V1GCEPersistentDiskVolumeSource """ return self._gce_persistent_disk @gce_persistent_disk.setter def gce_persistent_disk(self, gce_persistent_disk): """ Sets the gce_persistent_disk of this V1Volume. GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :param gce_persistent_disk: The gce_persistent_disk of this V1Volume. :type: V1GCEPersistentDiskVolumeSource """ self._gce_persistent_disk = gce_persistent_disk @property def aws_elastic_block_store(self): """ Gets the aws_elastic_block_store of this V1Volume. AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :return: The aws_elastic_block_store of this V1Volume. :rtype: V1AWSElasticBlockStoreVolumeSource """ return self._aws_elastic_block_store @aws_elastic_block_store.setter def aws_elastic_block_store(self, aws_elastic_block_store): """ Sets the aws_elastic_block_store of this V1Volume. AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#awselasticblockstore :param aws_elastic_block_store: The aws_elastic_block_store of this V1Volume. :type: V1AWSElasticBlockStoreVolumeSource """ self._aws_elastic_block_store = aws_elastic_block_store @property def git_repo(self): """ Gets the git_repo of this V1Volume. GitRepo represents a git repository at a particular revision. :return: The git_repo of this V1Volume. :rtype: V1GitRepoVolumeSource """ return self._git_repo @git_repo.setter def git_repo(self, git_repo): """ Sets the git_repo of this V1Volume. GitRepo represents a git repository at a particular revision. :param git_repo: The git_repo of this V1Volume. :type: V1GitRepoVolumeSource """ self._git_repo = git_repo @property def secret(self): """ Gets the secret of this V1Volume. Secret represents a secret that should populate this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets :return: The secret of this V1Volume. :rtype: V1SecretVolumeSource """ return self._secret @secret.setter def secret(self, secret): """ Sets the secret of this V1Volume. Secret represents a secret that should populate this volume. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#secrets :param secret: The secret of this V1Volume. :type: V1SecretVolumeSource """ self._secret = secret @property def nfs(self): """ Gets the nfs of this V1Volume. NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :return: The nfs of this V1Volume. :rtype: V1NFSVolumeSource """ return self._nfs @nfs.setter def nfs(self, nfs): """ Sets the nfs of this V1Volume. NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#nfs :param nfs: The nfs of this V1Volume. :type: V1NFSVolumeSource """ self._nfs = nfs @property def iscsi(self): """ Gets the iscsi of this V1Volume. ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/examples/iscsi/README.md :return: The iscsi of this V1Volume. :rtype: V1ISCSIVolumeSource """ return self._iscsi @iscsi.setter def iscsi(self, iscsi): """ Sets the iscsi of this V1Volume. ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/release-1.2/examples/iscsi/README.md :param iscsi: The iscsi of this V1Volume. :type: V1ISCSIVolumeSource """ self._iscsi = iscsi @property def glusterfs(self): """ Gets the glusterfs of this V1Volume. Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md :return: The glusterfs of this V1Volume. :rtype: V1GlusterfsVolumeSource """ return self._glusterfs @glusterfs.setter def glusterfs(self, glusterfs): """ Sets the glusterfs of this V1Volume. Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/glusterfs/README.md :param glusterfs: The glusterfs of this V1Volume. :type: V1GlusterfsVolumeSource """ self._glusterfs = glusterfs @property def persistent_volume_claim(self): """ Gets the persistent_volume_claim of this V1Volume. PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :return: The persistent_volume_claim of this V1Volume. :rtype: V1PersistentVolumeClaimVolumeSource """ return self._persistent_volume_claim @persistent_volume_claim.setter def persistent_volume_claim(self, persistent_volume_claim): """ Sets the persistent_volume_claim of this V1Volume. PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://releases.k8s.io/release-1.2/docs/user-guide/persistent-volumes.md#persistentvolumeclaims :param persistent_volume_claim: The persistent_volume_claim of this V1Volume. :type: V1PersistentVolumeClaimVolumeSource """ self._persistent_volume_claim = persistent_volume_claim @property def rbd(self): """ Gets the rbd of this V1Volume. RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md :return: The rbd of this V1Volume. :rtype: V1RBDVolumeSource """ return self._rbd @rbd.setter def rbd(self, rbd): """ Sets the rbd of this V1Volume. RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/release-1.2/examples/rbd/README.md :param rbd: The rbd of this V1Volume. :type: V1RBDVolumeSource """ self._rbd = rbd @property def flex_volume(self): """ Gets the flex_volume of this V1Volume. FlexVolume represents a generic volume resource that is provisioned/attached using a exec based plugin. This is an alpha feature and may change in future. :return: The flex_volume of this V1Volume. :rtype: V1FlexVolumeSource """ return self._flex_volume @flex_volume.setter def flex_volume(self, flex_volume): """ Sets the flex_volume of this V1Volume. FlexVolume represents a generic volume resource that is provisioned/attached using a exec based plugin. This is an alpha feature and may change in future. :param flex_volume: The flex_volume of this V1Volume. :type: V1FlexVolumeSource """ self._flex_volume = flex_volume @property def cinder(self): """ Gets the cinder of this V1Volume. Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :return: The cinder of this V1Volume. :rtype: V1CinderVolumeSource """ return self._cinder @cinder.setter def cinder(self, cinder): """ Sets the cinder of this V1Volume. Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/release-1.2/examples/mysql-cinder-pd/README.md :param cinder: The cinder of this V1Volume. :type: V1CinderVolumeSource """ self._cinder = cinder @property def cephfs(self): """ Gets the cephfs of this V1Volume. CephFS represents a Ceph FS mount on the host that shares a pod's lifetime :return: The cephfs of this V1Volume. :rtype: V1CephFSVolumeSource """ return self._cephfs @cephfs.setter def cephfs(self, cephfs): """ Sets the cephfs of this V1Volume. CephFS represents a Ceph FS mount on the host that shares a pod's lifetime :param cephfs: The cephfs of this V1Volume. :type: V1CephFSVolumeSource """ self._cephfs = cephfs @property def flocker(self): """ Gets the flocker of this V1Volume. Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running :return: The flocker of this V1Volume. :rtype: V1FlockerVolumeSource """ return self._flocker @flocker.setter def flocker(self, flocker): """ Sets the flocker of this V1Volume. Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running :param flocker: The flocker of this V1Volume. :type: V1FlockerVolumeSource """ self._flocker = flocker @property def downward_api(self): """ Gets the downward_api of this V1Volume. DownwardAPI represents downward API about the pod that should populate this volume :return: The downward_api of this V1Volume. :rtype: V1DownwardAPIVolumeSource """ return self._downward_api @downward_api.setter def downward_api(self, downward_api): """ Sets the downward_api of this V1Volume. DownwardAPI represents downward API about the pod that should populate this volume :param downward_api: The downward_api of this V1Volume. :type: V1DownwardAPIVolumeSource """ self._downward_api = downward_api @property def fc(self): """ Gets the fc of this V1Volume. FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. :return: The fc of this V1Volume. :rtype: V1FCVolumeSource """ return self._fc @fc.setter def fc(self, fc): """ Sets the fc of this V1Volume. FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. :param fc: The fc of this V1Volume. :type: V1FCVolumeSource """ self._fc = fc @property def azure_file(self): """ Gets the azure_file of this V1Volume. AzureFile represents an Azure File Service mount on the host and bind mount to the pod. :return: The azure_file of this V1Volume. :rtype: V1AzureFileVolumeSource """ return self._azure_file @azure_file.setter def azure_file(self, azure_file): """ Sets the azure_file of this V1Volume. AzureFile represents an Azure File Service mount on the host and bind mount to the pod. :param azure_file: The azure_file of this V1Volume. :type: V1AzureFileVolumeSource """ self._azure_file = azure_file @property def config_map(self): """ Gets the config_map of this V1Volume. ConfigMap represents a configMap that should populate this volume :return: The config_map of this V1Volume. :rtype: V1ConfigMapVolumeSource """ return self._config_map @config_map.setter def config_map(self, config_map): """ Sets the config_map of this V1Volume. ConfigMap represents a configMap that should populate this volume :param config_map: The config_map of this V1Volume. :type: V1ConfigMapVolumeSource """ self._config_map = config_map def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_local_object_reference.py0000664000567000056710000000540113046233226033355 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1LocalObjectReference(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str' } self.attribute_map = { 'name': 'name' } self._name = None @property def name(self): """ Gets the name of this V1LocalObjectReference. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :return: The name of this V1LocalObjectReference. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1LocalObjectReference. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1LocalObjectReference. :type: str """ self._name = name def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_env_var.py0000664000567000056710000001126713046233226030366 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1EnvVar(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'value': 'str', 'value_from': 'V1EnvVarSource' } self.attribute_map = { 'name': 'name', 'value': 'value', 'value_from': 'valueFrom' } self._name = None self._value = None self._value_from = None @property def name(self): """ Gets the name of this V1EnvVar. Name of the environment variable. Must be a C_IDENTIFIER. :return: The name of this V1EnvVar. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1EnvVar. Name of the environment variable. Must be a C_IDENTIFIER. :param name: The name of this V1EnvVar. :type: str """ self._name = name @property def value(self): """ Gets the value of this V1EnvVar. Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and object service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". :return: The value of this V1EnvVar. :rtype: str """ return self._value @value.setter def value(self, value): """ Sets the value of this V1EnvVar. Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and object service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". :param value: The value of this V1EnvVar. :type: str """ self._value = value @property def value_from(self): """ Gets the value_from of this V1EnvVar. Source for the environment variable's value. Cannot be used if value is not empty. :return: The value_from of this V1EnvVar. :rtype: V1EnvVarSource """ return self._value_from @value_from.setter def value_from(self, value_from): """ Sets the value_from of this V1EnvVar. Source for the environment variable's value. Cannot be used if value is not empty. :param value_from: The value_from of this V1EnvVar. :type: V1EnvVarSource """ self._value_from = value_from def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_deployment_list.py0000664000567000056710000001313613046233226033053 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1DeploymentList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'items': 'list[V1beta1Deployment]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'items': 'items' } self._kind = None self._api_version = None self._metadata = None self._items = None @property def kind(self): """ Gets the kind of this 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/release-1.2/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/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1beta1DeploymentList. :type: str """ self._kind = kind @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/release-1.2/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/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1beta1DeploymentList. :type: str """ self._api_version = api_version @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 @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] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_se_linux_options.py0000664000567000056710000001103413046233226032317 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1SELinuxOptions(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'user': 'str', 'role': 'str', 'type': 'str', 'level': 'str' } self.attribute_map = { 'user': 'user', 'role': 'role', 'type': 'type', 'level': 'level' } self._user = None self._role = None self._type = None self._level = None @property def user(self): """ Gets the user of this V1SELinuxOptions. User is a SELinux user label that applies to the container. :return: The user of this V1SELinuxOptions. :rtype: str """ return self._user @user.setter def user(self, user): """ Sets the user of this V1SELinuxOptions. User is a SELinux user label that applies to the container. :param user: The user of this V1SELinuxOptions. :type: str """ self._user = user @property def role(self): """ Gets the role of this V1SELinuxOptions. Role is a SELinux role label that applies to the container. :return: The role of this V1SELinuxOptions. :rtype: str """ return self._role @role.setter def role(self, role): """ Sets the role of this V1SELinuxOptions. Role is a SELinux role label that applies to the container. :param role: The role of this V1SELinuxOptions. :type: str """ self._role = role @property def type(self): """ Gets the type of this V1SELinuxOptions. Type is a SELinux type label that applies to the container. :return: The type of this V1SELinuxOptions. :rtype: str """ return self._type @type.setter def type(self, type): """ Sets the type of this V1SELinuxOptions. Type is a SELinux type label that applies to the container. :param type: The type of this V1SELinuxOptions. :type: str """ self._type = type @property def level(self): """ Gets the level of this V1SELinuxOptions. Level is SELinux level label that applies to the container. :return: The level of this V1SELinuxOptions. :rtype: str """ return self._level @level.setter def level(self, level): """ Sets the level of this V1SELinuxOptions. Level is SELinux level label that applies to the container. :param level: The level of this V1SELinuxOptions. :type: str """ self._level = level def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() ././@LongLink0000000000000000000000000000014700000000000011217 Lustar 00000000000000python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_gce_persistent_disk_volume_source.pypython-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_gce_persistent_disk_volume_source.0000664000567000056710000001501313046233226035345 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1GCEPersistentDiskVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'pd_name': 'str', 'fs_type': 'str', 'partition': 'int', 'read_only': 'bool' } self.attribute_map = { 'pd_name': 'pdName', 'fs_type': 'fsType', 'partition': 'partition', 'read_only': 'readOnly' } self._pd_name = None self._fs_type = None self._partition = None self._read_only = None @property def pd_name(self): """ Gets the pd_name of this V1GCEPersistentDiskVolumeSource. Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :return: The pd_name of this V1GCEPersistentDiskVolumeSource. :rtype: str """ return self._pd_name @pd_name.setter def pd_name(self, pd_name): """ Sets the pd_name of this V1GCEPersistentDiskVolumeSource. Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :param pd_name: The pd_name of this V1GCEPersistentDiskVolumeSource. :type: str """ self._pd_name = pd_name @property def fs_type(self): """ Gets the fs_type of this V1GCEPersistentDiskVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :return: The fs_type of this V1GCEPersistentDiskVolumeSource. :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): """ Sets the fs_type of this V1GCEPersistentDiskVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :param fs_type: The fs_type of this V1GCEPersistentDiskVolumeSource. :type: str """ self._fs_type = fs_type @property def partition(self): """ Gets the partition of this V1GCEPersistentDiskVolumeSource. The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :return: The partition of this V1GCEPersistentDiskVolumeSource. :rtype: int """ return self._partition @partition.setter def partition(self, partition): """ Sets the partition of this V1GCEPersistentDiskVolumeSource. The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :param partition: The partition of this V1GCEPersistentDiskVolumeSource. :type: int """ self._partition = partition @property def read_only(self): """ Gets the read_only of this V1GCEPersistentDiskVolumeSource. ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :return: The read_only of this V1GCEPersistentDiskVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1GCEPersistentDiskVolumeSource. ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#gcepersistentdisk :param read_only: The read_only of this V1GCEPersistentDiskVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_daemon_set_spec.py0000664000567000056710000001063713046233226032773 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1DaemonSetSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'selector': 'V1beta1LabelSelector', 'template': 'V1PodTemplateSpec' } self.attribute_map = { 'selector': 'selector', 'template': 'template' } self._selector = None self._template = None @property def selector(self): """ Gets the selector of this V1beta1DaemonSetSpec. 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://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors :return: The selector of this V1beta1DaemonSetSpec. :rtype: V1beta1LabelSelector """ return self._selector @selector.setter def selector(self, selector): """ Sets the selector of this V1beta1DaemonSetSpec. 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://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors :param selector: The selector of this V1beta1DaemonSetSpec. :type: V1beta1LabelSelector """ self._selector = selector @property def template(self): """ Gets the template of this V1beta1DaemonSetSpec. 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://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#pod-template :return: The template of this V1beta1DaemonSetSpec. :rtype: V1PodTemplateSpec """ return self._template @template.setter def template(self, template): """ Sets the template of this V1beta1DaemonSetSpec. 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://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#pod-template :param template: The template of this V1beta1DaemonSetSpec. :type: V1PodTemplateSpec """ self._template = template def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_job_list.py0000664000567000056710000001315213046233226031443 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1JobList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'items': 'list[V1beta1Job]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'items': 'items' } self._kind = None self._api_version = None self._metadata = None self._items = None @property def kind(self): """ Gets the kind of this 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/release-1.2/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/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1beta1JobList. :type: str """ self._kind = kind @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/release-1.2/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/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1beta1JobList. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1beta1JobList. Standard list metadata More info: http://releases.k8s.io/release-1.2/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/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1beta1JobList. :type: UnversionedListMeta """ self._metadata = metadata @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] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_ingress_status.py0000664000567000056710000000554513046233226032722 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1IngressStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'load_balancer': 'V1LoadBalancerStatus' } self.attribute_map = { 'load_balancer': 'loadBalancer' } self._load_balancer = None @property def load_balancer(self): """ Gets the load_balancer of this V1beta1IngressStatus. LoadBalancer contains the current status of the load-balancer. :return: The load_balancer of this V1beta1IngressStatus. :rtype: V1LoadBalancerStatus """ return self._load_balancer @load_balancer.setter def load_balancer(self, load_balancer): """ Sets the load_balancer of this V1beta1IngressStatus. LoadBalancer contains the current status of the load-balancer. :param load_balancer: The load_balancer of this V1beta1IngressStatus. :type: V1LoadBalancerStatus """ self._load_balancer = load_balancer def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_http_ingress_path.py0000664000567000056710000001021213046233226033355 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1HTTPIngressPath(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'path': 'str', 'backend': 'V1beta1IngressBackend' } self.attribute_map = { 'path': 'path', 'backend': 'backend' } self._path = None self._backend = None @property def path(self): """ Gets the path of this V1beta1HTTPIngressPath. Path is a 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. :return: The path of this V1beta1HTTPIngressPath. :rtype: str """ return self._path @path.setter def path(self, path): """ Sets the path of this V1beta1HTTPIngressPath. Path is a 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. :param path: The path of this V1beta1HTTPIngressPath. :type: str """ self._path = path @property def backend(self): """ Gets the backend of this V1beta1HTTPIngressPath. Backend defines the referenced service endpoint to which the traffic will be forwarded to. :return: The backend of this V1beta1HTTPIngressPath. :rtype: V1beta1IngressBackend """ return self._backend @backend.setter def backend(self, backend): """ Sets the backend of this V1beta1HTTPIngressPath. Backend defines the referenced service endpoint to which the traffic will be forwarded to. :param backend: The backend of this V1beta1HTTPIngressPath. :type: V1beta1IngressBackend """ self._backend = backend def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_replica_set_spec.py0000664000567000056710000001265513046233226033151 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1ReplicaSetSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'replicas': 'int', 'selector': 'V1beta1LabelSelector', 'template': 'V1PodTemplateSpec' } self.attribute_map = { 'replicas': 'replicas', 'selector': 'selector', 'template': 'template' } self._replicas = None self._selector = None self._template = None @property def replicas(self): """ Gets the replicas of this V1beta1ReplicaSetSpec. Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#what-is-a-replication-controller :return: The replicas of this V1beta1ReplicaSetSpec. :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): """ Sets the replicas of this V1beta1ReplicaSetSpec. Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#what-is-a-replication-controller :param replicas: The replicas of this V1beta1ReplicaSetSpec. :type: int """ self._replicas = replicas @property def selector(self): """ Gets the selector of this V1beta1ReplicaSetSpec. Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: http://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors :return: The selector of this V1beta1ReplicaSetSpec. :rtype: V1beta1LabelSelector """ return self._selector @selector.setter def selector(self, selector): """ Sets the selector of this V1beta1ReplicaSetSpec. Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: http://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors :param selector: The selector of this V1beta1ReplicaSetSpec. :type: V1beta1LabelSelector """ self._selector = selector @property def template(self): """ Gets the template of this V1beta1ReplicaSetSpec. Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#pod-template :return: The template of this V1beta1ReplicaSetSpec. :rtype: V1PodTemplateSpec """ return self._template @template.setter def template(self, template): """ Sets the template of this V1beta1ReplicaSetSpec. Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md#pod-template :param template: The template of this V1beta1ReplicaSetSpec. :type: V1PodTemplateSpec """ self._template = template def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/integer.py0000664000567000056710000000403313046233226027746 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class Integer(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { } self.attribute_map = { } def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_config_map_volume_source.py0000664000567000056710000001036113046233226033771 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ConfigMapVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'items': 'list[V1KeyToPath]' } self.attribute_map = { 'name': 'name', 'items': 'items' } self._name = None self._items = None @property def name(self): """ Gets the name of this V1ConfigMapVolumeSource. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :return: The name of this V1ConfigMapVolumeSource. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1ConfigMapVolumeSource. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1ConfigMapVolumeSource. :type: str """ self._name = name @property def items(self): """ Gets the items of this V1ConfigMapVolumeSource. If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'. :return: The items of this V1ConfigMapVolumeSource. :rtype: list[V1KeyToPath] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1ConfigMapVolumeSource. If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'. :param items: The items of this V1ConfigMapVolumeSource. :type: list[V1KeyToPath] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_job_spec.py0000664000567000056710000002217313046233226031425 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1JobSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'parallelism': 'int', 'completions': 'int', 'active_deadline_seconds': 'int', 'selector': 'V1beta1LabelSelector', 'auto_selector': 'bool', 'template': 'V1PodTemplateSpec' } self.attribute_map = { 'parallelism': 'parallelism', 'completions': 'completions', 'active_deadline_seconds': 'activeDeadlineSeconds', 'selector': 'selector', 'auto_selector': 'autoSelector', 'template': 'template' } self._parallelism = None self._completions = None self._active_deadline_seconds = None self._selector = None self._auto_selector = None self._template = None @property def parallelism(self): """ Gets the parallelism of this V1beta1JobSpec. Parallelism specifies the maximum desired number of pods the job should run at object 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://releases.k8s.io/release-1.2/docs/user-guide/jobs.md :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 object 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://releases.k8s.io/release-1.2/docs/user-guide/jobs.md :param parallelism: The parallelism of this V1beta1JobSpec. :type: int """ self._parallelism = parallelism @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 object pod signals the success of all pods, and allows parallelism to have object 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://releases.k8s.io/release-1.2/docs/user-guide/jobs.md :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 object pod signals the success of all pods, and allows parallelism to have object 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://releases.k8s.io/release-1.2/docs/user-guide/jobs.md :param completions: The completions of this V1beta1JobSpec. :type: int """ self._completions = completions @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 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://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors :return: The selector of this V1beta1JobSpec. :rtype: V1beta1LabelSelector """ 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://releases.k8s.io/release-1.2/docs/user-guide/labels.md#label-selectors :param selector: The selector of this V1beta1JobSpec. :type: V1beta1LabelSelector """ self._selector = selector @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/release-1.2/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/release-1.2/docs/design/selector-generation.md :param auto_selector: The auto_selector of this V1beta1JobSpec. :type: bool """ self._auto_selector = auto_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://releases.k8s.io/release-1.2/docs/user-guide/jobs.md :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://releases.k8s.io/release-1.2/docs/user-guide/jobs.md :param template: The template of this V1beta1JobSpec. :type: V1PodTemplateSpec """ self._template = template def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/unversioned_status.py0000664000567000056710000002231113046233226032254 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class UnversionedStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'status': 'str', 'message': 'str', 'reason': 'str', 'details': 'UnversionedStatusDetails', 'code': 'int' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'status': 'status', 'message': 'message', 'reason': 'reason', 'details': 'details', 'code': 'code' } self._kind = None self._api_version = None self._metadata = None self._status = None self._message = None self._reason = None self._details = None self._code = None @property def kind(self): """ Gets the kind of this UnversionedStatus. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this UnversionedStatus. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this UnversionedStatus. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this UnversionedStatus. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this UnversionedStatus. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this UnversionedStatus. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this UnversionedStatus. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this UnversionedStatus. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this UnversionedStatus. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this UnversionedStatus. :rtype: UnversionedListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this UnversionedStatus. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this UnversionedStatus. :type: UnversionedListMeta """ self._metadata = metadata @property def status(self): """ Gets the status of this UnversionedStatus. Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :return: The status of this UnversionedStatus. :rtype: str """ return self._status @status.setter def status(self, status): """ Sets the status of this UnversionedStatus. Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status :param status: The status of this UnversionedStatus. :type: str """ self._status = status @property def message(self): """ Gets the message of this UnversionedStatus. A human-readable description of the status of this operation. :return: The message of this UnversionedStatus. :rtype: str """ return self._message @message.setter def message(self, message): """ Sets the message of this UnversionedStatus. A human-readable description of the status of this operation. :param message: The message of this UnversionedStatus. :type: str """ self._message = message @property def reason(self): """ Gets the reason of this UnversionedStatus. A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. :return: The reason of this UnversionedStatus. :rtype: str """ return self._reason @reason.setter def reason(self, reason): """ Sets the reason of this UnversionedStatus. A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. :param reason: The reason of this UnversionedStatus. :type: str """ self._reason = reason @property def details(self): """ Gets the details of this UnversionedStatus. Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to object 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 object schema except that defined by the reason type. :param details: The details of this UnversionedStatus. :type: UnversionedStatusDetails """ self._details = details @property def code(self): """ Gets the code of this UnversionedStatus. Suggested HTTP return code for this status, 0 if not set. :return: The code of this UnversionedStatus. :rtype: int """ return self._code @code.setter def code(self, code): """ Sets the code of this UnversionedStatus. Suggested HTTP return code for this status, 0 if not set. :param code: The code of this UnversionedStatus. :type: int """ self._code = code def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/unversioned_list_meta.py0000664000567000056710000001030513046233226032712 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class UnversionedListMeta(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'self_link': 'str', 'resource_version': 'str' } self.attribute_map = { 'self_link': 'selfLink', 'resource_version': 'resourceVersion' } self._self_link = None self._resource_version = None @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 @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/release-1.2/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/release-1.2/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 def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_http_get_action.py0000664000567000056710000001300413046233226032070 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1HTTPGetAction(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'path': 'str', 'port': 'str', 'host': 'str', 'scheme': 'str', 'http_headers': 'list[V1HTTPHeader]' } self.attribute_map = { 'path': 'path', 'port': 'port', 'host': 'host', 'scheme': 'scheme', 'http_headers': 'httpHeaders' } self._path = None self._port = None self._host = None self._scheme = None self._http_headers = None @property def path(self): """ Gets the path of this V1HTTPGetAction. Path to access on the HTTP server. :return: The path of this V1HTTPGetAction. :rtype: str """ return self._path @path.setter def path(self, path): """ Sets the path of this V1HTTPGetAction. Path to access on the HTTP server. :param path: The path of this V1HTTPGetAction. :type: str """ self._path = path @property def port(self): """ Gets the port of this V1HTTPGetAction. Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. :return: The port of this V1HTTPGetAction. :rtype: str """ return self._port @port.setter def port(self, port): """ Sets the port of this V1HTTPGetAction. Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. :param port: The port of this V1HTTPGetAction. :type: str """ self._port = port @property def host(self): """ Gets the host of this V1HTTPGetAction. Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. :return: The host of this V1HTTPGetAction. :rtype: str """ return self._host @host.setter def host(self, host): """ Sets the host of this V1HTTPGetAction. Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. :param host: The host of this V1HTTPGetAction. :type: str """ self._host = host @property def scheme(self): """ Gets the scheme of this V1HTTPGetAction. Scheme to use for connecting to the host. Defaults to HTTP. :return: The scheme of this V1HTTPGetAction. :rtype: str """ return self._scheme @scheme.setter def scheme(self, scheme): """ Sets the scheme of this V1HTTPGetAction. Scheme to use for connecting to the host. Defaults to HTTP. :param scheme: The scheme of this V1HTTPGetAction. :type: str """ self._scheme = scheme @property def http_headers(self): """ Gets the http_headers of this V1HTTPGetAction. Custom headers to set in the request. HTTP allows repeated headers. :return: The http_headers of this V1HTTPGetAction. :rtype: list[V1HTTPHeader] """ return self._http_headers @http_headers.setter def http_headers(self, http_headers): """ Sets the http_headers of this V1HTTPGetAction. Custom headers to set in the request. HTTP allows repeated headers. :param http_headers: The http_headers of this V1HTTPGetAction. :type: list[V1HTTPHeader] """ self._http_headers = http_headers def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_empty_dir_volume_source.py0000664000567000056710000000610113046233226033660 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1EmptyDirVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'medium': 'str' } self.attribute_map = { 'medium': 'medium' } self._medium = None @property def medium(self): """ Gets the medium of this V1EmptyDirVolumeSource. What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir :return: The medium of this V1EmptyDirVolumeSource. :rtype: str """ return self._medium @medium.setter def medium(self, medium): """ Sets the medium of this V1EmptyDirVolumeSource. What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#emptydir :param medium: The medium of this V1EmptyDirVolumeSource. :type: str """ self._medium = medium def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_lifecycle.py0000664000567000056710000001121113046233226030652 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Lifecycle(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'post_start': 'V1Handler', 'pre_stop': 'V1Handler' } self.attribute_map = { 'post_start': 'postStart', 'pre_stop': 'preStop' } self._post_start = None self._pre_stop = None @property def post_start(self): """ Gets the post_start of this V1Lifecycle. PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details :return: The post_start of this V1Lifecycle. :rtype: V1Handler """ return self._post_start @post_start.setter def post_start(self, post_start): """ Sets the post_start of this V1Lifecycle. PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details :param post_start: The post_start of this V1Lifecycle. :type: V1Handler """ self._post_start = post_start @property def pre_stop(self): """ Gets the pre_stop of this V1Lifecycle. PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details :return: The pre_stop of this V1Lifecycle. :rtype: V1Handler """ return self._pre_stop @pre_stop.setter def pre_stop(self, pre_stop): """ Sets the pre_stop of this V1Lifecycle. PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: http://releases.k8s.io/release-1.2/docs/user-guide/container-environment.md#hook-details :param pre_stop: The pre_stop of this V1Lifecycle. :type: V1Handler """ self._pre_stop = pre_stop def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_handler.py0000664000567000056710000001022013046233226030327 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Handler(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { '_exec': 'V1ExecAction', 'http_get': 'V1HTTPGetAction', 'tcp_socket': 'V1TCPSocketAction' } self.attribute_map = { '_exec': 'exec', 'http_get': 'httpGet', 'tcp_socket': 'tcpSocket' } self.__exec = None self._http_get = None self._tcp_socket = None @property def _exec(self): """ Gets the _exec of this V1Handler. One and only one of the following should be specified. Exec specifies the action to take. :return: The _exec of this V1Handler. :rtype: V1ExecAction """ return self.__exec @_exec.setter def _exec(self, _exec): """ Sets the _exec of this V1Handler. One and only one of the following should be specified. Exec specifies the action to take. :param _exec: The _exec of this V1Handler. :type: V1ExecAction """ self.__exec = _exec @property def http_get(self): """ Gets the http_get of this V1Handler. HTTPGet specifies the http request to perform. :return: The http_get of this V1Handler. :rtype: V1HTTPGetAction """ return self._http_get @http_get.setter def http_get(self, http_get): """ Sets the http_get of this V1Handler. HTTPGet specifies the http request to perform. :param http_get: The http_get of this V1Handler. :type: V1HTTPGetAction """ self._http_get = http_get @property def tcp_socket(self): """ Gets the tcp_socket of this V1Handler. TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported :return: The tcp_socket of this V1Handler. :rtype: V1TCPSocketAction """ return self._tcp_socket @tcp_socket.setter def tcp_socket(self, tcp_socket): """ Sets the tcp_socket of this V1Handler. TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported :param tcp_socket: The tcp_socket of this V1Handler. :type: V1TCPSocketAction """ self._tcp_socket = tcp_socket def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_replica_set_list.py0000664000567000056710000001364413046233226033171 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1ReplicaSetList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'UnversionedListMeta', 'items': 'list[V1beta1ReplicaSet]' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'items': 'items' } self._kind = None self._api_version = None self._metadata = None self._items = None @property def kind(self): """ Gets the kind of this V1beta1ReplicaSetList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1beta1ReplicaSetList. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1beta1ReplicaSetList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1beta1ReplicaSetList. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1beta1ReplicaSetList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1beta1ReplicaSetList. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1beta1ReplicaSetList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1beta1ReplicaSetList. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1beta1ReplicaSetList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The metadata of this V1beta1ReplicaSetList. :rtype: UnversionedListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1beta1ReplicaSetList. Standard list metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param metadata: The metadata of this V1beta1ReplicaSetList. :type: UnversionedListMeta """ self._metadata = metadata @property def items(self): """ Gets the items of this V1beta1ReplicaSetList. List of ReplicaSets. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md :return: The items of this V1beta1ReplicaSetList. :rtype: list[V1beta1ReplicaSet] """ return self._items @items.setter def items(self, items): """ Sets the items of this V1beta1ReplicaSetList. List of ReplicaSets. More info: http://releases.k8s.io/release-1.2/docs/user-guide/replication-controller.md :param items: The items of this V1beta1ReplicaSetList. :type: list[V1beta1ReplicaSet] """ self._items = items def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_config_map_key_selector.py0000664000567000056710000000647013046233226033600 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ConfigMapKeySelector(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'key': 'str' } self.attribute_map = { 'name': 'name', 'key': 'key' } self._name = None self._key = None @property def name(self): """ Gets the name of this V1ConfigMapKeySelector. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :return: The name of this V1ConfigMapKeySelector. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1ConfigMapKeySelector. Name of the referent. More info: http://releases.k8s.io/release-1.2/docs/user-guide/identifiers.md#names :param name: The name of this V1ConfigMapKeySelector. :type: str """ self._name = name @property def key(self): """ Gets the key of this V1ConfigMapKeySelector. The key to select. :return: The key of this V1ConfigMapKeySelector. :rtype: str """ return self._key @key.setter def key(self, key): """ Sets the key of this V1ConfigMapKeySelector. The key to select. :param key: The key of this V1ConfigMapKeySelector. :type: str """ self._key = key def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_host_path_volume_source.py0000664000567000056710000000543113046233226033662 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1HostPathVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'path': 'str' } self.attribute_map = { 'path': 'path' } self._path = None @property def path(self): """ Gets the path of this V1HostPathVolumeSource. Path of the directory on the host. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath :return: The path of this V1HostPathVolumeSource. :rtype: str """ return self._path @path.setter def path(self, path): """ Sets the path of this V1HostPathVolumeSource. Path of the directory on the host. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#hostpath :param path: The path of this V1HostPathVolumeSource. :type: str """ self._path = path def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() ././@LongLink0000000000000000000000000000015300000000000011214 Lustar 00000000000000python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_horizontal_pod_autoscaler_status.pypython-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_horizontal_pod_autoscaler_sta0000664000567000056710000001623113046233226035334 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1HorizontalPodAutoscalerStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'observed_generation': 'int', 'last_scale_time': 'str', 'current_replicas': 'int', 'desired_replicas': 'int', 'current_cpu_utilization_percentage': 'int' } self.attribute_map = { 'observed_generation': 'observedGeneration', 'last_scale_time': 'lastScaleTime', 'current_replicas': 'currentReplicas', 'desired_replicas': 'desiredReplicas', 'current_cpu_utilization_percentage': 'currentCPUUtilizationPercentage' } self._observed_generation = None self._last_scale_time = None self._current_replicas = None self._desired_replicas = None self._current_cpu_utilization_percentage = None @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 @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: str """ 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: str """ self._last_scale_time = last_scale_time @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 """ 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 """ self._desired_replicas = desired_replicas @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 def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1beta1_label_selector.py0000664000567000056710000001026513046233226032617 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1beta1LabelSelector(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'match_labels': 'object', 'match_expressions': 'list[V1beta1LabelSelectorRequirement]' } self.attribute_map = { 'match_labels': 'matchLabels', 'match_expressions': 'matchExpressions' } self._match_labels = None self._match_expressions = None @property def match_labels(self): """ Gets the match_labels of this V1beta1LabelSelector. 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 V1beta1LabelSelector. :rtype: object """ return self._match_labels @match_labels.setter def match_labels(self, match_labels): """ Sets the match_labels of this V1beta1LabelSelector. 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 V1beta1LabelSelector. :type: object """ self._match_labels = match_labels @property def match_expressions(self): """ Gets the match_expressions of this V1beta1LabelSelector. matchExpressions is a list of label selector requirements. The requirements are ANDed. :return: The match_expressions of this V1beta1LabelSelector. :rtype: list[V1beta1LabelSelectorRequirement] """ return self._match_expressions @match_expressions.setter def match_expressions(self, match_expressions): """ Sets the match_expressions of this V1beta1LabelSelector. matchExpressions is a list of label selector requirements. The requirements are ANDed. :param match_expressions: The match_expressions of this V1beta1LabelSelector. :type: list[V1beta1LabelSelectorRequirement] """ self._match_expressions = match_expressions def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_iscsi_volume_source.py0000664000567000056710000001552613046233226033011 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ISCSIVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'target_portal': 'str', 'iqn': 'str', 'lun': 'int', 'iscsi_interface': 'str', 'fs_type': 'str', 'read_only': 'bool' } self.attribute_map = { 'target_portal': 'targetPortal', 'iqn': 'iqn', 'lun': 'lun', 'iscsi_interface': 'iscsiInterface', 'fs_type': 'fsType', 'read_only': 'readOnly' } self._target_portal = None self._iqn = None self._lun = None self._iscsi_interface = None self._fs_type = None self._read_only = None @property def target_portal(self): """ Gets the target_portal of this V1ISCSIVolumeSource. iSCSI target portal. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). :return: The target_portal of this V1ISCSIVolumeSource. :rtype: str """ return self._target_portal @target_portal.setter def target_portal(self, target_portal): """ Sets the target_portal of this V1ISCSIVolumeSource. iSCSI target portal. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). :param target_portal: The target_portal of this V1ISCSIVolumeSource. :type: str """ self._target_portal = target_portal @property def iqn(self): """ Gets the iqn of this V1ISCSIVolumeSource. Target iSCSI Qualified Name. :return: The iqn of this V1ISCSIVolumeSource. :rtype: str """ return self._iqn @iqn.setter def iqn(self, iqn): """ Sets the iqn of this V1ISCSIVolumeSource. Target iSCSI Qualified Name. :param iqn: The iqn of this V1ISCSIVolumeSource. :type: str """ self._iqn = iqn @property def lun(self): """ Gets the lun of this V1ISCSIVolumeSource. iSCSI target lun number. :return: The lun of this V1ISCSIVolumeSource. :rtype: int """ return self._lun @lun.setter def lun(self, lun): """ Sets the lun of this V1ISCSIVolumeSource. iSCSI target lun number. :param lun: The lun of this V1ISCSIVolumeSource. :type: int """ self._lun = lun @property def iscsi_interface(self): """ Gets the iscsi_interface of this V1ISCSIVolumeSource. Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport. :return: The iscsi_interface of this V1ISCSIVolumeSource. :rtype: str """ return self._iscsi_interface @iscsi_interface.setter def iscsi_interface(self, iscsi_interface): """ Sets the iscsi_interface of this V1ISCSIVolumeSource. Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport. :param iscsi_interface: The iscsi_interface of this V1ISCSIVolumeSource. :type: str """ self._iscsi_interface = iscsi_interface @property def fs_type(self): """ Gets the fs_type of this V1ISCSIVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#iscsi :return: The fs_type of this V1ISCSIVolumeSource. :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): """ Sets the fs_type of this V1ISCSIVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#iscsi :param fs_type: The fs_type of this V1ISCSIVolumeSource. :type: str """ self._fs_type = fs_type @property def read_only(self): """ Gets the read_only of this V1ISCSIVolumeSource. ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. :return: The read_only of this V1ISCSIVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1ISCSIVolumeSource. ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. :param read_only: The read_only of this V1ISCSIVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_ceph_fs_volume_source.py0000664000567000056710000001653113046233226033303 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1CephFSVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'monitors': 'list[str]', 'path': 'str', 'user': 'str', 'secret_file': 'str', 'secret_ref': 'V1LocalObjectReference', 'read_only': 'bool' } self.attribute_map = { 'monitors': 'monitors', 'path': 'path', 'user': 'user', 'secret_file': 'secretFile', 'secret_ref': 'secretRef', 'read_only': 'readOnly' } self._monitors = None self._path = None self._user = None self._secret_file = None self._secret_ref = None self._read_only = None @property def monitors(self): """ Gets the monitors of this V1CephFSVolumeSource. Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :return: The monitors of this V1CephFSVolumeSource. :rtype: list[str] """ return self._monitors @monitors.setter def monitors(self, monitors): """ Sets the monitors of this V1CephFSVolumeSource. Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :param monitors: The monitors of this V1CephFSVolumeSource. :type: list[str] """ self._monitors = monitors @property def path(self): """ Gets the path of this V1CephFSVolumeSource. Optional: Used as the mounted root, rather than the full Ceph tree, default is / :return: The path of this V1CephFSVolumeSource. :rtype: str """ return self._path @path.setter def path(self, path): """ Sets the path of this V1CephFSVolumeSource. Optional: Used as the mounted root, rather than the full Ceph tree, default is / :param path: The path of this V1CephFSVolumeSource. :type: str """ self._path = path @property def user(self): """ Gets the user of this V1CephFSVolumeSource. Optional: User is the rados user name, default is admin More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :return: The user of this V1CephFSVolumeSource. :rtype: str """ return self._user @user.setter def user(self, user): """ Sets the user of this V1CephFSVolumeSource. Optional: User is the rados user name, default is admin More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :param user: The user of this V1CephFSVolumeSource. :type: str """ self._user = user @property def secret_file(self): """ Gets the secret_file of this V1CephFSVolumeSource. Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :return: The secret_file of this V1CephFSVolumeSource. :rtype: str """ return self._secret_file @secret_file.setter def secret_file(self, secret_file): """ Sets the secret_file of this V1CephFSVolumeSource. Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :param secret_file: The secret_file of this V1CephFSVolumeSource. :type: str """ self._secret_file = secret_file @property def secret_ref(self): """ Gets the secret_ref of this V1CephFSVolumeSource. Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :return: The secret_ref of this V1CephFSVolumeSource. :rtype: V1LocalObjectReference """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): """ Sets the secret_ref of this V1CephFSVolumeSource. Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :param secret_ref: The secret_ref of this V1CephFSVolumeSource. :type: V1LocalObjectReference """ self._secret_ref = secret_ref @property def read_only(self): """ Gets the read_only of this V1CephFSVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :return: The read_only of this V1CephFSVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1CephFSVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :param read_only: The read_only of this V1CephFSVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/extensions_beta/v1_volume_mount.py0000664000567000056710000001013713046233226031452 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1VolumeMount(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'read_only': 'bool', 'mount_path': 'str' } self.attribute_map = { 'name': 'name', 'read_only': 'readOnly', 'mount_path': 'mountPath' } self._name = None self._read_only = None self._mount_path = None @property def name(self): """ Gets the name of this V1VolumeMount. This must match the Name of a Volume. :return: The name of this V1VolumeMount. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1VolumeMount. This must match the Name of a Volume. :param name: The name of this V1VolumeMount. :type: str """ self._name = name @property def read_only(self): """ Gets the read_only of this V1VolumeMount. Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. :return: The read_only of this V1VolumeMount. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1VolumeMount. Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. :param read_only: The read_only of this V1VolumeMount. :type: bool """ self._read_only = read_only @property def mount_path(self): """ Gets the mount_path of this V1VolumeMount. Path within the container at which the volume should be mounted. Must not contain ':'. :return: The mount_path of this V1VolumeMount. :rtype: str """ return self._mount_path @mount_path.setter def mount_path(self, mount_path): """ Sets the mount_path of this V1VolumeMount. Path within the container at which the volume should be mounted. Must not contain ':'. :param mount_path: The mount_path of this V1VolumeMount. :type: str """ self._mount_path = mount_path def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_iscsi_volume_source.py0000664000567000056710000001552613046233226027617 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ISCSIVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'target_portal': 'str', 'iqn': 'str', 'lun': 'int', 'iscsi_interface': 'str', 'fs_type': 'str', 'read_only': 'bool' } self.attribute_map = { 'target_portal': 'targetPortal', 'iqn': 'iqn', 'lun': 'lun', 'iscsi_interface': 'iscsiInterface', 'fs_type': 'fsType', 'read_only': 'readOnly' } self._target_portal = None self._iqn = None self._lun = None self._iscsi_interface = None self._fs_type = None self._read_only = None @property def target_portal(self): """ Gets the target_portal of this V1ISCSIVolumeSource. iSCSI target portal. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). :return: The target_portal of this V1ISCSIVolumeSource. :rtype: str """ return self._target_portal @target_portal.setter def target_portal(self, target_portal): """ Sets the target_portal of this V1ISCSIVolumeSource. iSCSI target portal. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). :param target_portal: The target_portal of this V1ISCSIVolumeSource. :type: str """ self._target_portal = target_portal @property def iqn(self): """ Gets the iqn of this V1ISCSIVolumeSource. Target iSCSI Qualified Name. :return: The iqn of this V1ISCSIVolumeSource. :rtype: str """ return self._iqn @iqn.setter def iqn(self, iqn): """ Sets the iqn of this V1ISCSIVolumeSource. Target iSCSI Qualified Name. :param iqn: The iqn of this V1ISCSIVolumeSource. :type: str """ self._iqn = iqn @property def lun(self): """ Gets the lun of this V1ISCSIVolumeSource. iSCSI target lun number. :return: The lun of this V1ISCSIVolumeSource. :rtype: int """ return self._lun @lun.setter def lun(self, lun): """ Sets the lun of this V1ISCSIVolumeSource. iSCSI target lun number. :param lun: The lun of this V1ISCSIVolumeSource. :type: int """ self._lun = lun @property def iscsi_interface(self): """ Gets the iscsi_interface of this V1ISCSIVolumeSource. Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport. :return: The iscsi_interface of this V1ISCSIVolumeSource. :rtype: str """ return self._iscsi_interface @iscsi_interface.setter def iscsi_interface(self, iscsi_interface): """ Sets the iscsi_interface of this V1ISCSIVolumeSource. Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport. :param iscsi_interface: The iscsi_interface of this V1ISCSIVolumeSource. :type: str """ self._iscsi_interface = iscsi_interface @property def fs_type(self): """ Gets the fs_type of this V1ISCSIVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#iscsi :return: The fs_type of this V1ISCSIVolumeSource. :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): """ Sets the fs_type of this V1ISCSIVolumeSource. Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/release-1.2/docs/user-guide/volumes.md#iscsi :param fs_type: The fs_type of this V1ISCSIVolumeSource. :type: str """ self._fs_type = fs_type @property def read_only(self): """ Gets the read_only of this V1ISCSIVolumeSource. ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. :return: The read_only of this V1ISCSIVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1ISCSIVolumeSource. ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. :param read_only: The read_only of this V1ISCSIVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_namespace_spec.py0000664000567000056710000000602213046233226026473 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1NamespaceSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'finalizers': 'list[V1FinalizerName]' } self.attribute_map = { 'finalizers': 'finalizers' } self._finalizers = None @property def finalizers(self): """ Gets the finalizers of this V1NamespaceSpec. Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: http://releases.k8s.io/release-1.2/docs/design/namespaces.md#finalizers :return: The finalizers of this V1NamespaceSpec. :rtype: list[V1FinalizerName] """ return self._finalizers @finalizers.setter def finalizers(self, finalizers): """ Sets the finalizers of this V1NamespaceSpec. Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: http://releases.k8s.io/release-1.2/docs/design/namespaces.md#finalizers :param finalizers: The finalizers of this V1NamespaceSpec. :type: list[V1FinalizerName] """ self._finalizers = finalizers def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_ceph_fs_volume_source.py0000664000567000056710000001653113046233226030111 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1CephFSVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'monitors': 'list[str]', 'path': 'str', 'user': 'str', 'secret_file': 'str', 'secret_ref': 'V1LocalObjectReference', 'read_only': 'bool' } self.attribute_map = { 'monitors': 'monitors', 'path': 'path', 'user': 'user', 'secret_file': 'secretFile', 'secret_ref': 'secretRef', 'read_only': 'readOnly' } self._monitors = None self._path = None self._user = None self._secret_file = None self._secret_ref = None self._read_only = None @property def monitors(self): """ Gets the monitors of this V1CephFSVolumeSource. Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :return: The monitors of this V1CephFSVolumeSource. :rtype: list[str] """ return self._monitors @monitors.setter def monitors(self, monitors): """ Sets the monitors of this V1CephFSVolumeSource. Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :param monitors: The monitors of this V1CephFSVolumeSource. :type: list[str] """ self._monitors = monitors @property def path(self): """ Gets the path of this V1CephFSVolumeSource. Optional: Used as the mounted root, rather than the full Ceph tree, default is / :return: The path of this V1CephFSVolumeSource. :rtype: str """ return self._path @path.setter def path(self, path): """ Sets the path of this V1CephFSVolumeSource. Optional: Used as the mounted root, rather than the full Ceph tree, default is / :param path: The path of this V1CephFSVolumeSource. :type: str """ self._path = path @property def user(self): """ Gets the user of this V1CephFSVolumeSource. Optional: User is the rados user name, default is admin More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :return: The user of this V1CephFSVolumeSource. :rtype: str """ return self._user @user.setter def user(self, user): """ Sets the user of this V1CephFSVolumeSource. Optional: User is the rados user name, default is admin More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :param user: The user of this V1CephFSVolumeSource. :type: str """ self._user = user @property def secret_file(self): """ Gets the secret_file of this V1CephFSVolumeSource. Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :return: The secret_file of this V1CephFSVolumeSource. :rtype: str """ return self._secret_file @secret_file.setter def secret_file(self, secret_file): """ Sets the secret_file of this V1CephFSVolumeSource. Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :param secret_file: The secret_file of this V1CephFSVolumeSource. :type: str """ self._secret_file = secret_file @property def secret_ref(self): """ Gets the secret_ref of this V1CephFSVolumeSource. Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :return: The secret_ref of this V1CephFSVolumeSource. :rtype: V1LocalObjectReference """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): """ Sets the secret_ref of this V1CephFSVolumeSource. Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :param secret_ref: The secret_ref of this V1CephFSVolumeSource. :type: V1LocalObjectReference """ self._secret_ref = secret_ref @property def read_only(self): """ Gets the read_only of this V1CephFSVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :return: The read_only of this V1CephFSVolumeSource. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1CephFSVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/release-1.2/examples/cephfs/README.md#how-to-use-it :param read_only: The read_only of this V1CephFSVolumeSource. :type: bool """ self._read_only = read_only def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_service_port.py0000664000567000056710000001641013046233226026233 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1ServicePort(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'protocol': 'str', 'port': 'int', 'target_port': 'str', 'node_port': 'int' } self.attribute_map = { 'name': 'name', 'protocol': 'protocol', 'port': 'port', 'target_port': 'targetPort', 'node_port': 'nodePort' } self._name = None self._protocol = None self._port = None self._target_port = None self._node_port = None @property def name(self): """ Gets the name of this V1ServicePort. The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service. :return: The name of this V1ServicePort. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1ServicePort. The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service. :param name: The name of this V1ServicePort. :type: str """ self._name = name @property def protocol(self): """ Gets the protocol of this V1ServicePort. The IP protocol for this port. Supports \"TCP\" and \"UDP\". Default is TCP. :return: The protocol of this V1ServicePort. :rtype: str """ return self._protocol @protocol.setter def protocol(self, protocol): """ Sets the protocol of this V1ServicePort. The IP protocol for this port. Supports \"TCP\" and \"UDP\". Default is TCP. :param protocol: The protocol of this V1ServicePort. :type: str """ self._protocol = protocol @property def port(self): """ Gets the port of this V1ServicePort. The port that will be exposed by this service. :return: The port of this V1ServicePort. :rtype: int """ return self._port @port.setter def port(self, port): """ Sets the port of this V1ServicePort. The port that will be exposed by this service. :param port: The port of this V1ServicePort. :type: int """ self._port = port @property def target_port(self): """ Gets the target_port of this V1ServicePort. Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#defining-a-service :return: The target_port of this V1ServicePort. :rtype: str """ return self._target_port @target_port.setter def target_port(self, target_port): """ Sets the target_port of this V1ServicePort. Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#defining-a-service :param target_port: The target_port of this V1ServicePort. :type: str """ self._target_port = target_port @property def node_port(self): """ Gets the node_port of this V1ServicePort. The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#type--nodeport :return: The node_port of this V1ServicePort. :rtype: int """ return self._node_port @node_port.setter def node_port(self, node_port): """ Sets the node_port of this V1ServicePort. The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: http://releases.k8s.io/release-1.2/docs/user-guide/services.md#type--nodeport :param node_port: The node_port of this V1ServicePort. :type: int """ self._node_port = node_port def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_volume_mount.py0000664000567000056710000001013713046233226026260 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1VolumeMount(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'name': 'str', 'read_only': 'bool', 'mount_path': 'str' } self.attribute_map = { 'name': 'name', 'read_only': 'readOnly', 'mount_path': 'mountPath' } self._name = None self._read_only = None self._mount_path = None @property def name(self): """ Gets the name of this V1VolumeMount. This must match the Name of a Volume. :return: The name of this V1VolumeMount. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this V1VolumeMount. This must match the Name of a Volume. :param name: The name of this V1VolumeMount. :type: str """ self._name = name @property def read_only(self): """ Gets the read_only of this V1VolumeMount. Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. :return: The read_only of this V1VolumeMount. :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): """ Sets the read_only of this V1VolumeMount. Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. :param read_only: The read_only of this V1VolumeMount. :type: bool """ self._read_only = read_only @property def mount_path(self): """ Gets the mount_path of this V1VolumeMount. Path within the container at which the volume should be mounted. Must not contain ':'. :return: The mount_path of this V1VolumeMount. :rtype: str """ return self._mount_path @mount_path.setter def mount_path(self, mount_path): """ Sets the mount_path of this V1VolumeMount. Path within the container at which the volume should be mounted. Must not contain ':'. :param mount_path: The mount_path of this V1VolumeMount. :type: str """ self._mount_path = mount_path def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/models/v1_binding.py0000664000567000056710000001315113046233226025140 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from pprint import pformat from six import iteritems class V1Binding(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ Swagger model :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'target': 'V1ObjectReference' } self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'target': 'target' } self._kind = None self._api_version = None self._metadata = None self._target = None @property def kind(self): """ Gets the kind of this V1Binding. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :return: The kind of this V1Binding. :rtype: str """ return self._kind @kind.setter def kind(self, kind): """ Sets the kind of this V1Binding. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#types-kinds :param kind: The kind of this V1Binding. :type: str """ self._kind = kind @property def api_version(self): """ Gets the api_version of this V1Binding. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :return: The api_version of this V1Binding. :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): """ Sets the api_version of this V1Binding. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#resources :param api_version: The api_version of this V1Binding. :type: str """ self._api_version = api_version @property def metadata(self): """ Gets the metadata of this V1Binding. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :return: The metadata of this V1Binding. :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this V1Binding. Standard object's metadata. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1Binding. :type: V1ObjectMeta """ self._metadata = metadata @property def target(self): """ Gets the target of this V1Binding. The target object that you want to bind to the standard object. :return: The target of this V1Binding. :rtype: V1ObjectReference """ return self._target @target.setter def target(self, target): """ Sets the target of this V1Binding. The target object that you want to bind to the standard object. :param target: The target of this V1Binding. :type: V1ObjectReference """ self._target = target def to_dict(self): """ Return model properties dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() else: result[attr] = value return result def to_str(self): """ Return model properties str """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() python-k8sclient-0.4.0/k8sclient/client/configuration.py0000664000567000056710000001201513046233226024502 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from __future__ import absolute_import import base64 import urllib3 try: import httplib except ImportError: # for python3 import http.client as httplib import sys import logging def singleton(cls, *args, **kw): instances = {} def _singleton(): if cls not in instances: instances[cls] = cls(*args, **kw) return instances[cls] return _singleton @singleton class Configuration(object): """ NOTE: This class is auto generated by the swagger code generator program. https://github.com/swagger-api/swagger-codegen Do not edit the class manually. """ def __init__(self): """ Constructor """ # Default Base url self.host = "https://127.0.0.1:443/" # Default api client self.api_client = None # Temp file folder for download self.temp_folder_path = None # Authentication Settings # dict to store API key(s) self.api_key = {} # dict to store API prefix (e.g. Bearer) self.api_key_prefix = {} # Username for HTTP basic authentication self.username = "" # Password for HTTP basic authentication self.password = "" # Logging Settings self.logging_format = '%(asctime)s %(levelname)s %(message)s' # Debug file location self.__logging_file = None # Debug switch self.__debug = False self.init_logger() def init_logger(self): """ Initializes logger settings. """ self.logger = logging.getLogger(__name__) formatter = logging.Formatter(self.logging_format) stream_handler = logging.StreamHandler() stream_handler.setFormatter(formatter) self.logger.addHandler(stream_handler) if self.__debug: self.logger.setLevel(logging.DEBUG) else: self.logger.setLevel(logging.WARNING) if self.__logging_file: file_handler = logging.FileHandler(self.__logging_file) file_handler.setFormatter(formatter) self.logger.addFilter(file_handler) @property def logging_file(self): return self.__logging_file @logging_file.setter def logging_file(self, value): self.__logging_file = value if self.__logging_file: formater = logging.Formatter(self.logging_format) file_handler = logging.FileHandler(self.__logging_file) file_handler.setFormatter(formater) self.logger.addHandler(file_handler) @property def debug(self): return self.__debug @debug.setter def debug(self, value): self.__debug = value if self.__debug: # if debug status is True, turn on debug logging self.logger.setLevel(logging.DEBUG) # turn on httplib debug httplib.HTTPConnection.debuglevel = 1 else: # if debug status is False, turn off debug logging, # setting log level to default `logging.WARNING` self.logger.setLevel(logging.WARNING) def get_api_key_with_prefix(self, identifier): """ Gets API key (with prefix if set). :param identifier: The identifier of apiKey. :return: The token for api key authentication. """ if self.api_key.get(identifier) and self.api_key_prefix.get(identifier): return self.api_key_prefix[identifier] + ' ' + self.api_key[identifier] elif self.api_key.get(identifier): return self.api_key[identifier] def get_basic_auth_token(self): """ Gets basic auth header string. :return: The token for basic HTTP authentication. """ return urllib3.util.make_headers(basic_auth=self.username + ':' + self.password)\ .get('authorization') def auth_settings(self): """ Gets Auth Settings dict for api client. :return: The Auth Settings information dict. """ return { } def to_debug_report(self): """ Gets the essential information for debugging. :return: The report for debugging. """ return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1\n"\ "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) python-k8sclient-0.4.0/k8sclient/client/api_client.py0000664000567000056710000004660413046233226023755 0ustar jenkinsjenkins00000000000000# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from __future__ import absolute_import from . import models from .models import extensions_beta from .models import batch from .rest import RESTClient from .rest import ApiException import os import re import json import mimetypes import random import tempfile import threading from datetime import datetime from datetime import date # python 2 and python 3 compatibility library import six from six import iteritems import six.moves.builtins as __builtin__ from six.moves.urllib import parse as urlparse from .configuration import Configuration if six.PY3: import io file_type = io.IOBase else: file_type = file # noqa class ApiClient(object): """ Generic API client for Swagger client library builds. Swagger generic API client. This client handles the client- server communication, and is invariant across implementations. Specifics of the methods and models for each application are generated from the Swagger templates. NOTE: This class is auto generated by the swagger code generator program. https://github.com/swagger-api/swagger-codegen Do not edit the class manually. :param host: The base path for the server to call. :param header_name: a header to pass when making calls to the API. :param header_value: a header value to pass when making calls to the API. """ def __init__(self, host=Configuration().host, header_name=None, header_value=None, cookie=None, key_file=None, cert_file=None, ca_certs=None): """ Constructor of the class. """ self.default_headers = {} if header_name is not None: self.default_headers[header_name] = header_value self.host = host self.cookie = cookie # Set default User-Agent. self.user_agent = 'Python-Swagger' self.RESTClient = RESTClient(key_file=key_file, cert_file=cert_file, ca_certs=ca_certs) @property def user_agent(self): """ Gets user agent. """ return self.default_headers['User-Agent'] @user_agent.setter def user_agent(self, value): """ Sets user agent. """ self.default_headers['User-Agent'] = value def set_default_header(self, header_name, header_value): self.default_headers[header_name] = header_value def __call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, post_params=None, files=None, response_type=None, auth_settings=None, callback=None): # headers parameters header_params = header_params or {} header_params.update(self.default_headers) if self.cookie: header_params['Cookie'] = self.cookie if header_params: header_params = self.sanitize_for_serialization(header_params) # path parameters if path_params: path_params = self.sanitize_for_serialization(path_params) for k, v in iteritems(path_params): replacement = urlparse.quote(str(self.to_path_value(v))) resource_path = resource_path.\ replace('{' + k + '}', replacement) # query parameters if query_params: query_params = self.sanitize_for_serialization(query_params) query_params = {k: self.to_path_value(v) for k, v in iteritems(query_params)} # post parameters if post_params: post_params = self.prepare_post_parameters(post_params, files) post_params = self.sanitize_for_serialization(post_params) # auth setting self.update_params_for_auth(header_params, query_params, auth_settings) # body if body: body = self.sanitize_for_serialization(body) # request url url = self.host + resource_path # perform request and return response response_data = self.request(method, url, query_params=query_params, headers=header_params, post_params=post_params, body=body) self.last_response = response_data # deserialize response data if response_type: deserialized_data = self.deserialize(response_data, response_type) else: deserialized_data = None if callback: callback(deserialized_data) else: return deserialized_data def to_path_value(self, obj): """ Takes value and turn it into a string suitable for inclusion in the path, by url-encoding. :param obj: object or string value. :return string: quoted value. """ if type(obj) == list: return ','.join(obj) else: return str(obj) def sanitize_for_serialization(self, obj): """ Builds a JSON POST object. If obj is None, return None. If obj is str, int, float, bool, return directly. If obj is datetime.datetime, datetime.date convert to string in iso8601 format. If obj is list, santize each element in the list. If obj is dict, return the dict. If obj is swagger model, return the properties dict. :param obj: The data to serialize. :return: The serialized form of data. """ if isinstance(obj, type(None)): return None elif isinstance(obj, (six.text_type, str, int, float, bool, tuple, file_type)): return obj elif isinstance(obj, list): return [self.sanitize_for_serialization(sub_obj) for sub_obj in obj] elif isinstance(obj, (datetime, date)): return obj.isoformat() else: if isinstance(obj, dict): obj_dict = obj else: # Convert model obj to dict except # attributes `swagger_types`, `attribute_map` # and attributes which value is not None. # Convert attribute name to json key in # model definition for request. obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) for attr, _ in iteritems(obj.swagger_types) if getattr(obj, attr) is not None} return {key: self.sanitize_for_serialization(val) for key, val in iteritems(obj_dict)} def deserialize(self, response, response_type): """ Deserializes response into an object. :param response: RESTResponse object to be deserialized. :param response_type: class literal for deserialzied object, or string of class name. :return: deserialized object. """ # handle file downloading # save response body into a tmp file and return the instance if "file" == response_type: return self.__deserialize_file(response) # fetch data from response object try: data = json.loads(response.data) except ValueError: data = response.data return self.__deserialize(data, response_type) def __deserialize(self, data, klass): """ Deserializes dict, list, str into an object. :param data: dict, list or str. :param klass: class literal, or string of class name. :return: object. """ if data is None: return None if type(klass) == str: if klass.startswith('list['): sub_kls = re.match('list\[(.*)\]', klass).group(1) return [self.__deserialize(sub_data, sub_kls) for sub_data in data] if klass.startswith('dict('): sub_kls = re.match('dict\(([^,]*), (.*)\)', klass).group(2) return {k: self.__deserialize(v, sub_kls) for k, v in iteritems(data)} # convert str to class # for native types if klass in ['int', 'float', 'str', 'bool', "date", 'datetime', "object"]: klass = getattr(__builtin__, klass) else: klass = getattr(models, klass, None) or getattr( extensions_beta, klass, None) or getattr(batch, klass) if klass in [int, float, str, bool]: return self.__deserialize_primitive(data, klass) elif klass == object: return self.__deserialize_object(data) elif klass == date: return self.__deserialize_date(data) elif klass == datetime: return self.__deserialize_datatime(data) else: return self.__deserialize_model(data, klass) def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, post_params=None, files=None, response_type=None, auth_settings=None, callback=None): """ Makes the HTTP request and return the deserialized data. :param resource_path: Path to method endpoint. :param method: Method to call. :param path_params: Path parameters in the url. :param query_params: Query parameters in the url. :param header_params: Header parameters to be placed in the request header. :param body: Request body. :param post_params dict: Request post form parameters, for `application/x-www-form-urlencoded`, `multipart/form-data`. :param auth_settings list: Auth Settings names for the request. :param response: Response data type. :param files dict: key -> filename, value -> filepath, for `multipart/form-data`. :param callback function: Callback function for asynchronous request. If provide this parameter, the request will be called asynchronously. :return: If provide parameter callback, the request will be called asynchronously. The method will return the request thread. If parameter callback is None, then the method will return the response directly. """ if callback is None: return self.__call_api(resource_path, method, path_params, query_params, header_params, body, post_params, files, response_type, auth_settings, callback) else: thread = threading.Thread(target=self.__call_api, args=(resource_path, method, path_params, query_params, header_params, body, post_params, files, response_type, auth_settings, callback)) thread.start() return thread def request(self, method, url, query_params=None, headers=None, post_params=None, body=None): """ Makes the HTTP request using instance of rest client. """ if method == "GET": return self.RESTClient.GET(url, query_params=query_params, headers=headers) elif method == "HEAD": return self.RESTClient.HEAD(url, query_params=query_params, headers=headers) elif method == "POST": return self.RESTClient.POST(url, query_params=query_params, headers=headers, post_params=post_params, body=body) elif method == "PUT": return self.RESTClient.PUT(url, query_params=query_params, headers=headers, post_params=post_params, body=body) elif method == "PATCH": return self.RESTClient.PATCH(url, query_params=query_params, headers=headers, post_params=post_params, body=body) elif method == "DELETE": return self.RESTClient.DELETE(url, query_params=query_params, headers=headers) else: raise ValueError( "http method must be `GET`, `HEAD`," " `POST`, `PATCH`, `PUT` or `DELETE`." ) def prepare_post_parameters(self, post_params=None, files=None): """ Builds form parameters. :param post_params: Normal form parameters. :param files: File parameters. :return: Form parameters with files. """ params = {} if post_params: params.update(post_params) if files: for k, v in iteritems(files): if not v: continue with open(v, 'rb') as f: filename = os.path.basename(f.name) filedata = f.read() mimetype = mimetypes.\ guess_type(filename)[0] or 'application/octet-stream' params[k] = tuple([filename, filedata, mimetype]) return params def select_header_accept(self, accepts): """ Returns `Accept` based on an array of accepts provided. :param accepts: List of headers. :return: Accept (e.g. application/json). """ if not accepts: return accepts = list(map(lambda x: x.lower(), accepts)) if 'application/json' in accepts: return 'application/json' else: return ', '.join(accepts) def select_header_content_type(self, content_types): """ Returns `Content-Type` based on an array of content_types provided. :param content_types: List of content-types. :return: Content-Type (e.g. application/json). """ if not content_types: return 'application/json' content_types = list(map(lambda x: x.lower(), content_types)) if 'application/json' in content_types or '*/*' in content_types: return 'application/json' else: return content_types[0] def update_params_for_auth(self, headers, querys, auth_settings): """ Updates header and query params based on authentication setting. :param headers: Header parameters dict to be updated. :param querys: Query parameters dict to be updated. :param auth_settings: Authentication setting identifiers list. """ config = Configuration() if not auth_settings: return for auth in auth_settings: auth_setting = config.auth_settings().get(auth) if auth_setting: if auth_setting['in'] == 'header': headers[auth_setting['key']] = auth_setting['value'] elif auth_setting['in'] == 'query': querys[auth_setting['key']] = auth_setting['value'] else: raise ValueError( 'Authentication token must be in `query` or `header`' ) def __deserialize_file(self, response): """ Saves response body into a file in (the defined) temporary folder, using the filename from the `Content-Disposition` header if provided, otherwise a random filename. :param response: RESTResponse. :return: file path. """ config = Configuration() fd, path = tempfile.mkstemp(dir=config.temp_folder_path) os.close(fd) os.remove(path) content_disposition = response.getheader("Content-Disposition") if content_disposition: filename = re.\ search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition).\ group(1) path = os.path.join(os.path.dirname(path), filename) with open(path, "w") as f: f.write(response.data) return path def __deserialize_primitive(self, data, klass): """ Deserializes string to primitive type. :param data: str. :param klass: class literal. :return: int, float, str, bool. """ try: value = klass(data) except UnicodeEncodeError: value = six.text_type(data) except TypeError: value = data return value def __deserialize_object(self, value): """ Return the original value. :return: object. """ return value def __deserialize_date(self, string): """ Deserializes string to date. :param string: str. :return: date. """ try: from dateutil.parser import parse return parse(string).date() except ImportError: return string except ValueError: raise ApiException( status=0, reason="Failed to parse `{0}` into a date object" .format(string) ) def __deserialize_datatime(self, string): """ Deserializes string to datetime. The string should be in iso8601 datetime format. :param string: str. :return: datetime. """ try: from dateutil.parser import parse return parse(string) except ImportError: return string except ValueError: raise ApiException( status=0, reason="Failed to parse `{0}` into a datetime object". format(string) ) def __deserialize_model(self, data, klass): """ Deserializes list or dict to model. :param data: dict, list. :param klass: class literal. :return: model object. """ instance = klass() for attr, attr_type in iteritems(instance.swagger_types): if data is not None \ and instance.attribute_map[attr] in data\ and isinstance(data, (list, dict)): value = data[instance.attribute_map[attr]] setattr(instance, attr, self.__deserialize(value, attr_type)) return instance python-k8sclient-0.4.0/k8sclient/tests/0000775000567000056710000000000013046233470021147 5ustar jenkinsjenkins00000000000000python-k8sclient-0.4.0/k8sclient/tests/__init__.py0000664000567000056710000000000013046233226023245 0ustar jenkinsjenkins00000000000000python-k8sclient-0.4.0/k8sclient/tests/test_k8sclient.py0000664000567000056710000002516513046233226024474 0ustar jenkinsjenkins00000000000000# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. """ test_k8sclient ---------------------------------- Tests for `k8sclient` module. Deploy Kubernetes using: http://kubernetes.io/docs/getting-started-guides/docker/ and then run this test """ from testtools.testcase import unittest import urllib3 import uuid from k8sclient.client import api_client from k8sclient.client.apis import apiv_api from k8sclient.client.apis import apisextensionsvbeta_api from k8sclient.client.apis import apisbatchv_api from k8sclient.tests import base def _is_k8s_running(): try: urllib3.PoolManager().request('GET', '127.0.0.1:8080') return True except urllib3.exceptions.HTTPError: return False class TestK8sclient(base.TestCase): @unittest.skipUnless( _is_k8s_running(), "Kubernetes is not available") def test_list_endpoints(self): client = api_client.ApiClient('http://127.0.0.1:8080/') api = apiv_api.ApivApi(client) endpoints = api.list_endpoints() self.assertTrue(len(endpoints.items) > 0) @unittest.skipUnless( _is_k8s_running(), "Kubernetes is not available") def test_pod_apis(self): client = api_client.ApiClient('http://127.0.0.1:8080/') api = apiv_api.ApivApi(client) name = 'test-' + str(uuid.uuid4()) pod_manifest = {'apiVersion': 'v1', 'kind': 'Pod', 'metadata': {'color': 'blue', 'name': name}, 'spec': {'containers': [{'image': 'dockerfile/redis', 'name': 'redis'}]}} resp = api.create_namespaced_pod(body=pod_manifest, namespace='default') self.assertEqual(name, resp.metadata.name) self.assertTrue(resp.status.phase) resp = api.read_namespaced_pod(name=name, namespace='default') self.assertEqual(name, resp.metadata.name) self.assertTrue(resp.status.phase) number_of_pods = len(api.list_pod().items) self.assertTrue(number_of_pods > 0) resp = api.delete_namespaced_pod(name=name, body={}, namespace='default') @unittest.skipUnless( _is_k8s_running(), "Kubernetes is not available") def test_service_apis(self): client = api_client.ApiClient('http://127.0.0.1:8080/') api = apiv_api.ApivApi(client) service_manifest = {'apiVersion': 'v1', 'kind': 'Service', 'metadata': {'labels': {'name': 'frontend'}, 'name': 'frontend', 'resourceversion': 'v1'}, 'spec': {'ports': [{'name': 'port', 'port': 80, 'protocol': 'TCP', 'targetPort': 80}], 'selector': {'name': 'frontend'}}} resp = api.create_namespaced_service(body=service_manifest, namespace='default') self.assertEqual('frontend', resp.metadata.name) self.assertTrue(resp.status) resp = api.read_namespaced_service(name='frontend', namespace='default') self.assertEqual('frontend', resp.metadata.name) self.assertTrue(resp.status) service_manifest['spec']['ports'] = [{'name': 'new', 'port': 8080, 'protocol': 'TCP', 'targetPort': 8080}] resp = api.patch_namespaced_service(body=service_manifest, name='frontend', namespace='default') self.assertEqual(2, len(resp.spec.ports)) self.assertTrue(resp.status) resp = api.delete_namespaced_service(name='frontend', namespace='default') @unittest.skipUnless( _is_k8s_running(), "Kubernetes is not available") def test_replication_controller_apis(self): client = api_client.ApiClient('http://127.0.0.1:8080/') api = apiv_api.ApivApi(client) rc_manifest = { 'apiVersion': 'v1', 'kind': 'ReplicationController', 'metadata': {'labels': {'name': 'frontend'}, 'name': 'frontend'}, 'spec': {'replicas': 2, 'selector': {'name': 'frontend'}, 'template': {'metadata': { 'labels': {'name': 'frontend'}}, 'spec': {'containers': [{ 'image': 'nginx', 'name': 'nginx', 'ports': [{'containerPort': 80, 'protocol': 'TCP'}]}]}}}} resp = api.create_namespaced_replication_controller( body=rc_manifest, namespace='default') self.assertEqual('frontend', resp.metadata.name) self.assertEqual(2, resp.spec.replicas) resp = api.read_namespaced_replication_controller( name='frontend', namespace='default') self.assertEqual('frontend', resp.metadata.name) self.assertEqual(2, resp.spec.replicas) resp = api.delete_namespaced_replication_controller( name='frontend', body={}, namespace='default') @unittest.skipUnless( _is_k8s_running(), "Kubernetes is not available") def test_configmap_apis(self): client = api_client.ApiClient('http://127.0.0.1:8080/') api = apiv_api.ApivApi(client) test_configmap = { "kind": "ConfigMap", "apiVersion": "v1", "metadata": { "name": "test-configmap", }, "data": { "config.json": "{\"command\":\"/usr/bin/mysqld_safe\"}", "frontend.cnf": "[mysqld]\nbind-address = 10.0.0.3\nport = 3306\n" } } resp = api.create_namespaced_config_map( body=test_configmap, namespace='default' ) self.assertEqual('test-configmap', resp.metadata.name) resp = api.read_namespaced_config_map( name='test-configmap', namespace='default') self.assertEqual('test-configmap', resp.metadata.name) test_configmap['data']['config.json'] = "{}" resp = api.patch_namespaced_config_map( name='test-configmap', namespace='default', body=test_configmap) resp = api.delete_namespaced_config_map( name='test-configmap', body={}, namespace='default') @unittest.skipUnless( _is_k8s_running(), "Kubernetes is not available") def test_node_apis(self): client = api_client.ApiClient('http://127.0.0.1:8080/') api = apiv_api.ApivApi(client) for item in api.list_namespaced_node().items: node = api.read_namespaced_node(name=item.metadata.name) self.assertTrue(len(node.metadata.labels) > 0) self.assertIsInstance(node.metadata.labels, dict) class TestK8sclientBeta(base.TestCase): @unittest.skipUnless( _is_k8s_running(), "Kubernetes is not available") def test_deployment_apis(self): client = api_client.ApiClient('http://127.0.0.1:8080/') api = apisextensionsvbeta_api.ApisextensionsvbetaApi(client) deployment_manifest = { 'kind': 'Deployment', 'spec': { 'template': {'spec': {'containers': [ {'image': 'nginx', 'name': 'test-deployment', 'ports': [{'containerPort': 80}] } ]}, 'metadata': {'labels': {'app': 'test-deployment'}}}, 'replicas': 2}, 'apiVersion': 'extensions/v1beta1', 'metadata': {'name': 'test-deployment'}} resp = api.create_namespaced_deployment( body=deployment_manifest, namespace='default') self.assertEqual('test-deployment', resp.metadata.name) self.assertEqual(2, resp.spec.replicas) resp = api.read_namespaced_deployment( name='test-deployment', namespace='default') self.assertEqual('test-deployment', resp.metadata.name) self.assertEqual(2, resp.spec.replicas) deployment_manifest['spec']['replicas'] = 1 resp = api.patch_namespaced_deployment( name='test-deployment', namespace='default', body=deployment_manifest) self.assertEqual(1, resp.spec.replicas) resp = api.delete_namespaced_deployment( name='test-deployment', body={}, namespace='default') class TestK8sclientBatch(base.TestCase): @unittest.skipUnless( _is_k8s_running(), "Kubernetes is not available") def test_job_apis(self): client = api_client.ApiClient('http://127.0.0.1:8080/') api = apisbatchv_api.ApisbatchvApi(client) job_manifest = { 'kind': 'Job', 'spec': { 'template': {'spec': {'containers': [ {'image': 'busybox', 'name': 'test-job', 'command': ["sh", "-c", "sleep 5"] }], 'restartPolicy': 'Never'}, 'metadata': {'name': 'test-job'}}}, 'apiVersion': 'batch/v1', 'metadata': {'name': 'test-job'}} resp = api.create_namespaced_job( body=job_manifest, namespace='default') self.assertEqual('test-job', resp.metadata.name) resp = api.read_namespaced_job( name='test-job', namespace='default') self.assertEqual('test-job', resp.metadata.name) resp = api.delete_namespaced_job( name='test-job', body={}, namespace='default') python-k8sclient-0.4.0/k8sclient/tests/base.py0000664000567000056710000000143213046233226022432 0ustar jenkinsjenkins00000000000000# -*- coding: utf-8 -*- # Copyright 2010-2011 OpenStack Foundation # Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from oslotest import base class TestCase(base.BaseTestCase): """Test case base class for all unit tests.""" python-k8sclient-0.4.0/LICENSE0000664000567000056710000002363713046233226017120 0ustar jenkinsjenkins00000000000000 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. python-k8sclient-0.4.0/MANIFEST.in0000664000567000056710000000013613046233226017636 0ustar jenkinsjenkins00000000000000include AUTHORS include ChangeLog exclude .gitignore exclude .gitreview global-exclude *.pyc python-k8sclient-0.4.0/.testr.conf0000664000567000056710000000047713046233226020176 0ustar jenkinsjenkins00000000000000[DEFAULT] test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \ OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \ OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \ ${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION test_id_option=--load-list $IDFILE test_list_option=--list python-k8sclient-0.4.0/HACKING.rst0000664000567000056710000000025013046233226017673 0ustar jenkinsjenkins00000000000000python-k8sclient Style Commandments =============================================== Read the OpenStack Style Commandments http://docs.openstack.org/developer/hacking/ python-k8sclient-0.4.0/tools/0000775000567000056710000000000013046233470017241 5ustar jenkinsjenkins00000000000000python-k8sclient-0.4.0/tools/kube-init.sh0000775000567000056710000000640113046233226021467 0ustar jenkinsjenkins00000000000000#!/bin/bash set -x function clean_exit(){ local error_code="$?" local spawned=$(jobs -p) if [ -n "$spawned" ]; then kill $(jobs -p) fi return $error_code } trap "clean_exit" EXIT # Switch off SE-Linux setenforce 0 # Install docker if needed path_to_executable=$(which docker) if [ -x "$path_to_executable" ] ; then echo "Found Docker installation" else curl -sSL https://get.docker.io | sudo bash fi docker --version # Get the latest stable version of kubernetes export K8S_VERSION=$(curl -sS https://storage.googleapis.com/kubernetes-release/release/stable.txt) echo "K8S_VERSION : ${K8S_VERSION}" echo "Starting docker service" sudo systemctl enable docker.service sudo systemctl start docker.service --ignore-dependencies echo "Checking docker service" sudo docker ps # Run the docker containers for kubernetes echo "Starting Kubernetes containers" sudo docker run \ --volume=/:/rootfs:ro \ --volume=/sys:/sys:ro \ --volume=/var/lib/docker/:/var/lib/docker:rw \ --volume=/var/lib/kubelet/:/var/lib/kubelet:rw \ --volume=/var/run:/var/run:rw \ --net=host \ --pid=host \ --privileged=true \ --name=kubelet \ -d \ gcr.io/google_containers/hyperkube-amd64:${K8S_VERSION} \ /hyperkube kubelet \ --containerized \ --hostname-override="127.0.0.1" \ --address="0.0.0.0" \ --api-servers=http://localhost:8080 \ --config=/etc/kubernetes/manifests \ --allow-privileged=true --v=2 echo "Download Kubernetes CLI" wget -O kubectl "http://storage.googleapis.com/kubernetes-release/release/${K8S_VERSION}/bin/linux/amd64/kubectl" chmod 755 kubectl ./kubectl get nodes echo "Waiting for master components to start..." for i in {1..300} do running_count=$(./kubectl -s=http://127.0.0.1:8080 get pods --no-headers 2>/dev/null | grep "Running" | wc -l) # We expect to have 3 running pods - etcd, master and kube-proxy. if [ "$running_count" -ge 3 ]; then break fi echo -n "." sleep 1 done echo "SUCCESS" echo "Cluster created!" echo "" echo "Dump Kubernetes Objects..." ./kubectl -s=http://127.0.0.1:8080 get componentstatuses ./kubectl -s=http://127.0.0.1:8080 get configmaps ./kubectl -s=http://127.0.0.1:8080 get daemonsets ./kubectl -s=http://127.0.0.1:8080 get deployments ./kubectl -s=http://127.0.0.1:8080 get events ./kubectl -s=http://127.0.0.1:8080 get endpoints ./kubectl -s=http://127.0.0.1:8080 get horizontalpodautoscalers ./kubectl -s=http://127.0.0.1:8080 get ingress ./kubectl -s=http://127.0.0.1:8080 get jobs ./kubectl -s=http://127.0.0.1:8080 get limitranges ./kubectl -s=http://127.0.0.1:8080 get nodes ./kubectl -s=http://127.0.0.1:8080 get namespaces ./kubectl -s=http://127.0.0.1:8080 get pods ./kubectl -s=http://127.0.0.1:8080 get persistentvolumes ./kubectl -s=http://127.0.0.1:8080 get persistentvolumeclaims ./kubectl -s=http://127.0.0.1:8080 get quota ./kubectl -s=http://127.0.0.1:8080 get resourcequotas ./kubectl -s=http://127.0.0.1:8080 get replicasets ./kubectl -s=http://127.0.0.1:8080 get replicationcontrollers ./kubectl -s=http://127.0.0.1:8080 get secrets ./kubectl -s=http://127.0.0.1:8080 get serviceaccounts ./kubectl -s=http://127.0.0.1:8080 get services echo "Running tests..." set -x -e # Yield execution to venv command $*python-k8sclient-0.4.0/CONTRIBUTING.rst0000664000567000056710000000122413046233226020540 0ustar jenkinsjenkins00000000000000If you would like to contribute to the development of OpenStack, you must follow the steps in this page: http://docs.openstack.org/infra/manual/developers.html If you already have a good understanding of how the system works and your OpenStack accounts are set up, you can skip to the development workflow section of this documentation to learn how changes to OpenStack should be submitted for review via the Gerrit tool: http://docs.openstack.org/infra/manual/developers.html#development-workflow Pull requests submitted through GitHub will be ignored. Bugs should be filed on Launchpad, not GitHub: https://bugs.launchpad.net/python-k8sclient python-k8sclient-0.4.0/README.rst0000664000567000056710000000370313046233226017572 0ustar jenkinsjenkins00000000000000============================================= python-k8sclient - Kubernetes API client code ============================================= Overview -------- This is Kubernetes API python client code. This code is generated by swagger-codegen. Kubernetes provide swagger-spec to generate client code for different versions. The specs live in Kubernetes repo. * Free software: Apache license * Documentation: http://docs.openstack.org/developer/python-k8sclient * Source: http://git.openstack.org/cgit/openstack/python-k8sclient * Bugs: http://bugs.launchpad.net/python-k8sclient See also -------- * swagger-codegen: https://github.com/swagger-api/swagger-codegen * Kubernetes swagger-spec: https://github.com/GoogleCloudPlatform/kubernetes/tree/master/api/swagger-spec Prerequisites ------------- You need to install required packages for swagger codegen. Please refer to ``_ Steps to generate API client code --------------------------------- Steps to generate Kubernetes client code for v1: * Clone the python-k8sclient repo:: git clone https://git.openstack.org/openstack/python-k8sclient * Clone the swagger-codegen repo. It is recommended to checkout a release (e.g. v2.1.3) instead of using the master branch:: git clone https://github.com/swagger-api/swagger-codegen.git cd swagger-codegen/ git checkout tags/v2.1.3 * Build swagger-codegen:: mvn package * Update the v1.json from latest Kubernetes release:: curl -o ./k8sclient/templates/v1.json https://raw.githubusercontent.com/kubernetes/kubernetes/v1.2.2/api/swagger-spec/v1.json * Run below command to generate the API client code for Kubernetes:: cd .. java -jar ./swagger-codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar \ generate \ -i ./k8sclient/templates/v1.json \ -l python -o ./KubernetesClientCode Now you can check the code at location ./KubernetesClientCode. python-k8sclient-0.4.0/requirements.txt0000664000567000056710000000044013046233226021362 0ustar jenkinsjenkins00000000000000# The order of packages is significant, because pip processes them in the order # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. pbr>=1.6 six>=1.9.0 # MIT urllib3>=1.8.3 # MIT python-dateutil>=2.4.2 # BSDpython-k8sclient-0.4.0/tox.ini0000664000567000056710000000165213046233226017417 0ustar jenkinsjenkins00000000000000[tox] minversion = 2.0 envlist = py35,py34,py27,pypy,pep8 skipsdist = True [testenv] usedevelop = True install_command = pip install -U {opts} {packages} setenv = VIRTUAL_ENV={envdir} deps = -r{toxinidir}/test-requirements.txt commands = python setup.py test --slowest --testr-args='{posargs}' [testenv:py27-functional] commands = {toxinidir}/tools/kube-init.sh python setup.py testr --slowest --testr-args="{posargs}" [testenv:pep8] commands = flake8 {posargs} [testenv:venv] commands = {posargs} [testenv:cover] commands = python setup.py test --coverage --testr-args='{posargs}' [testenv:docs] commands = python setup.py build_sphinx [testenv:debug] commands = oslo_debug_helper {posargs} [flake8] # E123, E125 skipped as they are invalid PEP-8. show-source = True ignore = E123,E125,E303,E501,F401,H234,H304,H306,H404,H405,W292,W293 builtins = _ exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build python-k8sclient-0.4.0/AUTHORS0000664000567000056710000000163713046233467017166 0ustar jenkinsjenkins00000000000000Andreas Jaeger Andrey Andrey Kurilin Andrey Pavlov Davanum Srinivas Dmitry Tyzhnenko Flavio Percoco Hongbin Lu Hua Wang Madhuri Madhuri Kumari Martin Falatic PanFengyun Ralf Haferkamp Shuquan Huang Spyros Trigazis Steven Dake Surojit Pathak Swapnil Kulkarni (coolsvap) Ton Ngo Tony Xu Zane Bitter abhishekkekane houming-wang venkatamahesh python-k8sclient-0.4.0/doc/0000775000567000056710000000000013046233470016646 5ustar jenkinsjenkins00000000000000python-k8sclient-0.4.0/doc/source/0000775000567000056710000000000013046233470020146 5ustar jenkinsjenkins00000000000000python-k8sclient-0.4.0/doc/source/usage.rst0000664000567000056710000000012613046233226022002 0ustar jenkinsjenkins00000000000000======== Usage ======== To use python-k8sclient in a project:: import k8sclient python-k8sclient-0.4.0/doc/source/readme.rst0000664000567000056710000000003613046233226022133 0ustar jenkinsjenkins00000000000000.. include:: ../../README.rst python-k8sclient-0.4.0/doc/source/installation.rst0000664000567000056710000000033113046233226023375 0ustar jenkinsjenkins00000000000000============ Installation ============ At the command line:: $ pip install python-k8sclient Or, if you have virtualenvwrapper installed:: $ mkvirtualenv python-k8sclient $ pip install python-k8sclient python-k8sclient-0.4.0/doc/source/index.rst0000664000567000056710000000100313046233226022000 0ustar jenkinsjenkins00000000000000.. python-k8sclient documentation master file, created by sphinx-quickstart on Tue Jul 9 22:26:36 2013. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to python-k8sclient's documentation! ======================================================== Contents: .. toctree:: :maxdepth: 2 readme installation usage contributing Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search` python-k8sclient-0.4.0/doc/source/conf.py0000775000567000056710000000464013046233226021453 0ustar jenkinsjenkins00000000000000# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or # implied. # See the License for the specific language governing permissions and # limitations under the License. import os import sys sys.path.insert(0, os.path.abspath('../..')) # -- General configuration ---------------------------------------------------- # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = [ 'sphinx.ext.autodoc', #'sphinx.ext.intersphinx', 'oslosphinx' ] # autodoc generation is a bit aggressive and a nuisance when doing heavy # text edit cycles. # execute "export SPHINX_DEBUG=1" in your terminal to disable # The suffix of source filenames. source_suffix = '.rst' # The master toctree document. master_doc = 'index' # General information about the project. project = u'python-k8sclient' copyright = u'2013, OpenStack Foundation' # If true, '()' will be appended to :func: etc. cross-reference text. add_function_parentheses = True # If true, the current module name will be prepended to all description # unit titles (such as .. function::). add_module_names = True # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' # -- Options for HTML output -------------------------------------------------- # The theme to use for HTML and HTML Help pages. Major themes that come with # Sphinx are currently 'default' and 'sphinxdoc'. # html_theme_path = ["."] # html_theme = '_theme' # html_static_path = ['static'] # Output file base name for HTML help builder. htmlhelp_basename = '%sdoc' % project # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass # [howto/manual]). latex_documents = [ ('index', '%s.tex' % project, u'%s Documentation' % project, u'OpenStack Foundation', 'manual'), ] # Example configuration for intersphinx: refer to the Python standard library. #intersphinx_mapping = {'http://docs.python.org/': None} python-k8sclient-0.4.0/doc/source/contributing.rst0000664000567000056710000000011313046233226023401 0ustar jenkinsjenkins00000000000000============ Contributing ============ .. include:: ../../CONTRIBUTING.rst python-k8sclient-0.4.0/setup.py0000664000567000056710000000177713046233226017626 0ustar jenkinsjenkins00000000000000# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or # implied. # See the License for the specific language governing permissions and # limitations under the License. # THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT import setuptools # In python < 2.7.4, a lazy loading of package `pbr` will break # setuptools if some other modules registered functions in `atexit`. # solution from: http://bugs.python.org/issue15881#msg170215 try: import multiprocessing # noqa except ImportError: pass setuptools.setup( setup_requires=['pbr'], pbr=True) python-k8sclient-0.4.0/python_k8sclient.egg-info/0000775000567000056710000000000013046233470023100 5ustar jenkinsjenkins00000000000000python-k8sclient-0.4.0/python_k8sclient.egg-info/dependency_links.txt0000664000567000056710000000000113046233467027154 0ustar jenkinsjenkins00000000000000 python-k8sclient-0.4.0/python_k8sclient.egg-info/top_level.txt0000664000567000056710000000001213046233467025631 0ustar jenkinsjenkins00000000000000k8sclient python-k8sclient-0.4.0/python_k8sclient.egg-info/SOURCES.txt0000664000567000056710000004154013046233470024770 0ustar jenkinsjenkins00000000000000.testr.conf AUTHORS CONTRIBUTING.rst ChangeLog HACKING.rst LICENSE MANIFEST.in README.rst babel.cfg requirements.txt setup.cfg setup.py test-requirements.txt tox.ini doc/source/conf.py doc/source/contributing.rst doc/source/index.rst doc/source/installation.rst doc/source/readme.rst doc/source/usage.rst k8sclient/__init__.py k8sclient/client/__init__.py k8sclient/client/api_client.py k8sclient/client/configuration.py k8sclient/client/rest.py k8sclient/client/apis/__init__.py k8sclient/client/apis/apisbatchv_api.py k8sclient/client/apis/apisextensionsvbeta_api.py k8sclient/client/apis/apiv_api.py k8sclient/client/models/__init__.py k8sclient/client/models/integer.py k8sclient/client/models/json_watch_event.py k8sclient/client/models/unversioned_list_meta.py k8sclient/client/models/unversioned_patch.py k8sclient/client/models/unversioned_status.py k8sclient/client/models/unversioned_status_cause.py k8sclient/client/models/unversioned_status_details.py k8sclient/client/models/v1_aws_elastic_block_store_volume_source.py k8sclient/client/models/v1_azure_file_volume_source.py k8sclient/client/models/v1_binding.py k8sclient/client/models/v1_capabilities.py k8sclient/client/models/v1_capability.py k8sclient/client/models/v1_ceph_fs_volume_source.py k8sclient/client/models/v1_cinder_volume_source.py k8sclient/client/models/v1_component_condition.py k8sclient/client/models/v1_component_status.py k8sclient/client/models/v1_component_status_list.py k8sclient/client/models/v1_config_map.py k8sclient/client/models/v1_config_map_key_selector.py k8sclient/client/models/v1_config_map_list.py k8sclient/client/models/v1_config_map_volume_source.py k8sclient/client/models/v1_container.py k8sclient/client/models/v1_container_image.py k8sclient/client/models/v1_container_port.py k8sclient/client/models/v1_container_state.py k8sclient/client/models/v1_container_state_running.py k8sclient/client/models/v1_container_state_terminated.py k8sclient/client/models/v1_container_state_waiting.py k8sclient/client/models/v1_container_status.py k8sclient/client/models/v1_daemon_endpoint.py k8sclient/client/models/v1_delete_options.py k8sclient/client/models/v1_downward_api_volume_file.py k8sclient/client/models/v1_downward_api_volume_source.py k8sclient/client/models/v1_empty_dir_volume_source.py k8sclient/client/models/v1_endpoint_address.py k8sclient/client/models/v1_endpoint_port.py k8sclient/client/models/v1_endpoint_subset.py k8sclient/client/models/v1_endpoints.py k8sclient/client/models/v1_endpoints_list.py k8sclient/client/models/v1_env_var.py k8sclient/client/models/v1_env_var_source.py k8sclient/client/models/v1_event.py k8sclient/client/models/v1_event_list.py k8sclient/client/models/v1_event_source.py k8sclient/client/models/v1_exec_action.py k8sclient/client/models/v1_fc_volume_source.py k8sclient/client/models/v1_finalizer_name.py k8sclient/client/models/v1_flex_volume_source.py k8sclient/client/models/v1_flocker_volume_source.py k8sclient/client/models/v1_gce_persistent_disk_volume_source.py k8sclient/client/models/v1_git_repo_volume_source.py k8sclient/client/models/v1_glusterfs_volume_source.py k8sclient/client/models/v1_handler.py k8sclient/client/models/v1_host_path_volume_source.py k8sclient/client/models/v1_http_get_action.py k8sclient/client/models/v1_http_header.py k8sclient/client/models/v1_iscsi_volume_source.py k8sclient/client/models/v1_key_to_path.py k8sclient/client/models/v1_lifecycle.py k8sclient/client/models/v1_limit_range.py k8sclient/client/models/v1_limit_range_item.py k8sclient/client/models/v1_limit_range_list.py k8sclient/client/models/v1_limit_range_spec.py k8sclient/client/models/v1_load_balancer_ingress.py k8sclient/client/models/v1_load_balancer_status.py k8sclient/client/models/v1_local_object_reference.py k8sclient/client/models/v1_namespace.py k8sclient/client/models/v1_namespace_list.py k8sclient/client/models/v1_namespace_spec.py k8sclient/client/models/v1_namespace_status.py k8sclient/client/models/v1_nfs_volume_source.py k8sclient/client/models/v1_node.py k8sclient/client/models/v1_node_address.py k8sclient/client/models/v1_node_condition.py k8sclient/client/models/v1_node_daemon_endpoints.py k8sclient/client/models/v1_node_list.py k8sclient/client/models/v1_node_spec.py k8sclient/client/models/v1_node_status.py k8sclient/client/models/v1_node_system_info.py k8sclient/client/models/v1_object_field_selector.py k8sclient/client/models/v1_object_meta.py k8sclient/client/models/v1_object_reference.py k8sclient/client/models/v1_persistent_volume.py k8sclient/client/models/v1_persistent_volume_access_mode.py k8sclient/client/models/v1_persistent_volume_claim.py k8sclient/client/models/v1_persistent_volume_claim_list.py k8sclient/client/models/v1_persistent_volume_claim_spec.py k8sclient/client/models/v1_persistent_volume_claim_status.py k8sclient/client/models/v1_persistent_volume_claim_volume_source.py k8sclient/client/models/v1_persistent_volume_list.py k8sclient/client/models/v1_persistent_volume_spec.py k8sclient/client/models/v1_persistent_volume_status.py k8sclient/client/models/v1_pod.py k8sclient/client/models/v1_pod_condition.py k8sclient/client/models/v1_pod_list.py k8sclient/client/models/v1_pod_security_context.py k8sclient/client/models/v1_pod_spec.py k8sclient/client/models/v1_pod_status.py k8sclient/client/models/v1_pod_template.py k8sclient/client/models/v1_pod_template_list.py k8sclient/client/models/v1_pod_template_spec.py k8sclient/client/models/v1_probe.py k8sclient/client/models/v1_rbd_volume_source.py k8sclient/client/models/v1_replication_controller.py k8sclient/client/models/v1_replication_controller_list.py k8sclient/client/models/v1_replication_controller_spec.py k8sclient/client/models/v1_replication_controller_status.py k8sclient/client/models/v1_resource_quota.py k8sclient/client/models/v1_resource_quota_list.py k8sclient/client/models/v1_resource_quota_scope.py k8sclient/client/models/v1_resource_quota_spec.py k8sclient/client/models/v1_resource_quota_status.py k8sclient/client/models/v1_resource_requirements.py k8sclient/client/models/v1_scale.py k8sclient/client/models/v1_scale_spec.py k8sclient/client/models/v1_scale_status.py k8sclient/client/models/v1_se_linux_options.py k8sclient/client/models/v1_secret.py k8sclient/client/models/v1_secret_key_selector.py k8sclient/client/models/v1_secret_list.py k8sclient/client/models/v1_secret_volume_source.py k8sclient/client/models/v1_security_context.py k8sclient/client/models/v1_service.py k8sclient/client/models/v1_service_account.py k8sclient/client/models/v1_service_account_list.py k8sclient/client/models/v1_service_list.py k8sclient/client/models/v1_service_port.py k8sclient/client/models/v1_service_spec.py k8sclient/client/models/v1_service_status.py k8sclient/client/models/v1_tcp_socket_action.py k8sclient/client/models/v1_volume.py k8sclient/client/models/v1_volume_mount.py k8sclient/client/models/batch/__init__.py k8sclient/client/models/batch/integer.py k8sclient/client/models/batch/json_watch_event.py k8sclient/client/models/batch/unversioned_list_meta.py k8sclient/client/models/batch/unversioned_patch.py k8sclient/client/models/batch/unversioned_status.py k8sclient/client/models/batch/unversioned_status_cause.py k8sclient/client/models/batch/unversioned_status_details.py k8sclient/client/models/batch/v1_aws_elastic_block_store_volume_source.py k8sclient/client/models/batch/v1_azure_file_volume_source.py k8sclient/client/models/batch/v1_capabilities.py k8sclient/client/models/batch/v1_capability.py k8sclient/client/models/batch/v1_ceph_fs_volume_source.py k8sclient/client/models/batch/v1_cinder_volume_source.py k8sclient/client/models/batch/v1_config_map_key_selector.py k8sclient/client/models/batch/v1_config_map_volume_source.py k8sclient/client/models/batch/v1_container.py k8sclient/client/models/batch/v1_container_port.py k8sclient/client/models/batch/v1_delete_options.py k8sclient/client/models/batch/v1_downward_api_volume_file.py k8sclient/client/models/batch/v1_downward_api_volume_source.py k8sclient/client/models/batch/v1_empty_dir_volume_source.py k8sclient/client/models/batch/v1_env_var.py k8sclient/client/models/batch/v1_env_var_source.py k8sclient/client/models/batch/v1_exec_action.py k8sclient/client/models/batch/v1_fc_volume_source.py k8sclient/client/models/batch/v1_flex_volume_source.py k8sclient/client/models/batch/v1_flocker_volume_source.py k8sclient/client/models/batch/v1_gce_persistent_disk_volume_source.py k8sclient/client/models/batch/v1_git_repo_volume_source.py k8sclient/client/models/batch/v1_glusterfs_volume_source.py k8sclient/client/models/batch/v1_handler.py k8sclient/client/models/batch/v1_host_path_volume_source.py k8sclient/client/models/batch/v1_http_get_action.py k8sclient/client/models/batch/v1_http_header.py k8sclient/client/models/batch/v1_iscsi_volume_source.py k8sclient/client/models/batch/v1_job.py k8sclient/client/models/batch/v1_job_condition.py k8sclient/client/models/batch/v1_job_list.py k8sclient/client/models/batch/v1_job_spec.py k8sclient/client/models/batch/v1_job_status.py k8sclient/client/models/batch/v1_key_to_path.py k8sclient/client/models/batch/v1_label_selector.py k8sclient/client/models/batch/v1_label_selector_requirement.py k8sclient/client/models/batch/v1_lifecycle.py k8sclient/client/models/batch/v1_local_object_reference.py k8sclient/client/models/batch/v1_nfs_volume_source.py k8sclient/client/models/batch/v1_object_field_selector.py k8sclient/client/models/batch/v1_object_meta.py k8sclient/client/models/batch/v1_persistent_volume_claim_volume_source.py k8sclient/client/models/batch/v1_pod_security_context.py k8sclient/client/models/batch/v1_pod_spec.py k8sclient/client/models/batch/v1_pod_template_spec.py k8sclient/client/models/batch/v1_probe.py k8sclient/client/models/batch/v1_rbd_volume_source.py k8sclient/client/models/batch/v1_resource_requirements.py k8sclient/client/models/batch/v1_se_linux_options.py k8sclient/client/models/batch/v1_secret_key_selector.py k8sclient/client/models/batch/v1_secret_volume_source.py k8sclient/client/models/batch/v1_security_context.py k8sclient/client/models/batch/v1_tcp_socket_action.py k8sclient/client/models/batch/v1_volume.py k8sclient/client/models/batch/v1_volume_mount.py k8sclient/client/models/extensions_beta/__init__.py k8sclient/client/models/extensions_beta/integer.py k8sclient/client/models/extensions_beta/json_watch_event.py k8sclient/client/models/extensions_beta/unversioned_list_meta.py k8sclient/client/models/extensions_beta/unversioned_patch.py k8sclient/client/models/extensions_beta/unversioned_status.py k8sclient/client/models/extensions_beta/unversioned_status_cause.py k8sclient/client/models/extensions_beta/unversioned_status_details.py k8sclient/client/models/extensions_beta/v1_aws_elastic_block_store_volume_source.py k8sclient/client/models/extensions_beta/v1_azure_file_volume_source.py k8sclient/client/models/extensions_beta/v1_capabilities.py k8sclient/client/models/extensions_beta/v1_capability.py k8sclient/client/models/extensions_beta/v1_ceph_fs_volume_source.py k8sclient/client/models/extensions_beta/v1_cinder_volume_source.py k8sclient/client/models/extensions_beta/v1_config_map_key_selector.py k8sclient/client/models/extensions_beta/v1_config_map_volume_source.py k8sclient/client/models/extensions_beta/v1_container.py k8sclient/client/models/extensions_beta/v1_container_port.py k8sclient/client/models/extensions_beta/v1_delete_options.py k8sclient/client/models/extensions_beta/v1_downward_api_volume_file.py k8sclient/client/models/extensions_beta/v1_downward_api_volume_source.py k8sclient/client/models/extensions_beta/v1_empty_dir_volume_source.py k8sclient/client/models/extensions_beta/v1_env_var.py k8sclient/client/models/extensions_beta/v1_env_var_source.py k8sclient/client/models/extensions_beta/v1_exec_action.py k8sclient/client/models/extensions_beta/v1_fc_volume_source.py k8sclient/client/models/extensions_beta/v1_flex_volume_source.py k8sclient/client/models/extensions_beta/v1_flocker_volume_source.py k8sclient/client/models/extensions_beta/v1_gce_persistent_disk_volume_source.py k8sclient/client/models/extensions_beta/v1_git_repo_volume_source.py k8sclient/client/models/extensions_beta/v1_glusterfs_volume_source.py k8sclient/client/models/extensions_beta/v1_handler.py k8sclient/client/models/extensions_beta/v1_host_path_volume_source.py k8sclient/client/models/extensions_beta/v1_http_get_action.py k8sclient/client/models/extensions_beta/v1_http_header.py k8sclient/client/models/extensions_beta/v1_iscsi_volume_source.py k8sclient/client/models/extensions_beta/v1_key_to_path.py k8sclient/client/models/extensions_beta/v1_lifecycle.py k8sclient/client/models/extensions_beta/v1_load_balancer_ingress.py k8sclient/client/models/extensions_beta/v1_load_balancer_status.py k8sclient/client/models/extensions_beta/v1_local_object_reference.py k8sclient/client/models/extensions_beta/v1_nfs_volume_source.py k8sclient/client/models/extensions_beta/v1_object_field_selector.py k8sclient/client/models/extensions_beta/v1_object_meta.py k8sclient/client/models/extensions_beta/v1_persistent_volume_claim_volume_source.py k8sclient/client/models/extensions_beta/v1_pod_security_context.py k8sclient/client/models/extensions_beta/v1_pod_spec.py k8sclient/client/models/extensions_beta/v1_pod_template_spec.py k8sclient/client/models/extensions_beta/v1_probe.py k8sclient/client/models/extensions_beta/v1_rbd_volume_source.py k8sclient/client/models/extensions_beta/v1_resource_requirements.py k8sclient/client/models/extensions_beta/v1_se_linux_options.py k8sclient/client/models/extensions_beta/v1_secret_key_selector.py k8sclient/client/models/extensions_beta/v1_secret_volume_source.py k8sclient/client/models/extensions_beta/v1_security_context.py k8sclient/client/models/extensions_beta/v1_tcp_socket_action.py k8sclient/client/models/extensions_beta/v1_volume.py k8sclient/client/models/extensions_beta/v1_volume_mount.py k8sclient/client/models/extensions_beta/v1beta1_cpu_target_utilization.py k8sclient/client/models/extensions_beta/v1beta1_daemon_set.py k8sclient/client/models/extensions_beta/v1beta1_daemon_set_list.py k8sclient/client/models/extensions_beta/v1beta1_daemon_set_spec.py k8sclient/client/models/extensions_beta/v1beta1_daemon_set_status.py k8sclient/client/models/extensions_beta/v1beta1_deployment.py k8sclient/client/models/extensions_beta/v1beta1_deployment_list.py k8sclient/client/models/extensions_beta/v1beta1_deployment_rollback.py k8sclient/client/models/extensions_beta/v1beta1_deployment_spec.py k8sclient/client/models/extensions_beta/v1beta1_deployment_status.py k8sclient/client/models/extensions_beta/v1beta1_deployment_strategy.py k8sclient/client/models/extensions_beta/v1beta1_horizontal_pod_autoscaler.py k8sclient/client/models/extensions_beta/v1beta1_horizontal_pod_autoscaler_list.py k8sclient/client/models/extensions_beta/v1beta1_horizontal_pod_autoscaler_spec.py k8sclient/client/models/extensions_beta/v1beta1_horizontal_pod_autoscaler_status.py k8sclient/client/models/extensions_beta/v1beta1_http_ingress_path.py k8sclient/client/models/extensions_beta/v1beta1_http_ingress_rule_value.py k8sclient/client/models/extensions_beta/v1beta1_ingress.py k8sclient/client/models/extensions_beta/v1beta1_ingress_backend.py k8sclient/client/models/extensions_beta/v1beta1_ingress_list.py k8sclient/client/models/extensions_beta/v1beta1_ingress_rule.py k8sclient/client/models/extensions_beta/v1beta1_ingress_spec.py k8sclient/client/models/extensions_beta/v1beta1_ingress_status.py k8sclient/client/models/extensions_beta/v1beta1_ingress_tls.py k8sclient/client/models/extensions_beta/v1beta1_job.py k8sclient/client/models/extensions_beta/v1beta1_job_condition.py k8sclient/client/models/extensions_beta/v1beta1_job_list.py k8sclient/client/models/extensions_beta/v1beta1_job_spec.py k8sclient/client/models/extensions_beta/v1beta1_job_status.py k8sclient/client/models/extensions_beta/v1beta1_label_selector.py k8sclient/client/models/extensions_beta/v1beta1_label_selector_requirement.py k8sclient/client/models/extensions_beta/v1beta1_replica_set.py k8sclient/client/models/extensions_beta/v1beta1_replica_set_list.py k8sclient/client/models/extensions_beta/v1beta1_replica_set_spec.py k8sclient/client/models/extensions_beta/v1beta1_replica_set_status.py k8sclient/client/models/extensions_beta/v1beta1_rollback_config.py k8sclient/client/models/extensions_beta/v1beta1_rolling_update_deployment.py k8sclient/client/models/extensions_beta/v1beta1_scale.py k8sclient/client/models/extensions_beta/v1beta1_scale_spec.py k8sclient/client/models/extensions_beta/v1beta1_scale_status.py k8sclient/client/models/extensions_beta/v1beta1_subresource_reference.py k8sclient/templates/batch_v1.json k8sclient/templates/extensions_v1beta1.json k8sclient/templates/v1.json k8sclient/tests/__init__.py k8sclient/tests/base.py k8sclient/tests/test_k8sclient.py python_k8sclient.egg-info/PKG-INFO python_k8sclient.egg-info/SOURCES.txt python_k8sclient.egg-info/dependency_links.txt python_k8sclient.egg-info/not-zip-safe python_k8sclient.egg-info/pbr.json python_k8sclient.egg-info/requires.txt python_k8sclient.egg-info/top_level.txt tools/kube-init.shpython-k8sclient-0.4.0/python_k8sclient.egg-info/pbr.json0000664000567000056710000000005613046233467024565 0ustar jenkinsjenkins00000000000000{"git_version": "c18bd6f", "is_release": true}python-k8sclient-0.4.0/python_k8sclient.egg-info/requires.txt0000664000567000056710000000007213046233467025505 0ustar jenkinsjenkins00000000000000pbr>=1.6 six>=1.9.0 urllib3>=1.8.3 python-dateutil>=2.4.2 python-k8sclient-0.4.0/python_k8sclient.egg-info/not-zip-safe0000664000567000056710000000000113046233460025325 0ustar jenkinsjenkins00000000000000 python-k8sclient-0.4.0/python_k8sclient.egg-info/PKG-INFO0000664000567000056710000000657513046233467024220 0ustar jenkinsjenkins00000000000000Metadata-Version: 1.1 Name: python-k8sclient Version: 0.4.0 Summary: This is Kubernetes API python client code. This code is generated by swagger-codegen. Kubernetes provide swagger-spec to generate client code for different versions. The specs live in Kubernetes repo. Home-page: http://www.openstack.org/ Author: OpenStack Author-email: openstack-dev@lists.openstack.org License: UNKNOWN Description: ============================================= python-k8sclient - Kubernetes API client code ============================================= Overview -------- This is Kubernetes API python client code. This code is generated by swagger-codegen. Kubernetes provide swagger-spec to generate client code for different versions. The specs live in Kubernetes repo. * Free software: Apache license * Documentation: http://docs.openstack.org/developer/python-k8sclient * Source: http://git.openstack.org/cgit/openstack/python-k8sclient * Bugs: http://bugs.launchpad.net/python-k8sclient See also -------- * swagger-codegen: https://github.com/swagger-api/swagger-codegen * Kubernetes swagger-spec: https://github.com/GoogleCloudPlatform/kubernetes/tree/master/api/swagger-spec Prerequisites ------------- You need to install required packages for swagger codegen. Please refer to ``_ Steps to generate API client code --------------------------------- Steps to generate Kubernetes client code for v1: * Clone the python-k8sclient repo:: git clone https://git.openstack.org/openstack/python-k8sclient * Clone the swagger-codegen repo. It is recommended to checkout a release (e.g. v2.1.3) instead of using the master branch:: git clone https://github.com/swagger-api/swagger-codegen.git cd swagger-codegen/ git checkout tags/v2.1.3 * Build swagger-codegen:: mvn package * Update the v1.json from latest Kubernetes release:: curl -o ./k8sclient/templates/v1.json https://raw.githubusercontent.com/kubernetes/kubernetes/v1.2.2/api/swagger-spec/v1.json * Run below command to generate the API client code for Kubernetes:: cd .. java -jar ./swagger-codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar \ generate \ -i ./k8sclient/templates/v1.json \ -l python -o ./KubernetesClientCode Now you can check the code at location ./KubernetesClientCode. Platform: UNKNOWN Classifier: Environment :: OpenStack Classifier: Intended Audience :: Information Technology Classifier: Intended Audience :: System Administrators Classifier: License :: OSI Approved :: Apache Software License Classifier: Operating System :: POSIX :: Linux Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 python-k8sclient-0.4.0/test-requirements.txt0000664000567000056710000000065213046233226022344 0ustar jenkinsjenkins00000000000000# The order of packages is significant, because pip processes them in the order # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. hacking<0.11,>=0.10.0 coverage>=3.6 python-subunit>=0.0.18 sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2 oslosphinx>=2.5.0 # Apache-2.0 oslotest>=1.10.0 # Apache-2.0 testrepository>=0.0.18 testscenarios>=0.4 testtools>=1.4.0 python-k8sclient-0.4.0/setup.cfg0000664000567000056710000000246213046233470017726 0ustar jenkinsjenkins00000000000000[metadata] name = python-k8sclient summary = This is Kubernetes API python client code. This code is generated by swagger-codegen. Kubernetes provide swagger-spec to generate client code for different versions. The specs live in Kubernetes repo. description-file = README.rst author = OpenStack author-email = openstack-dev@lists.openstack.org home-page = http://www.openstack.org/ classifier = Environment :: OpenStack Intended Audience :: Information Technology Intended Audience :: System Administrators License :: OSI Approved :: Apache Software License Operating System :: POSIX :: Linux Programming Language :: Python Programming Language :: Python :: 2 Programming Language :: Python :: 2.7 Programming Language :: Python :: 3 Programming Language :: Python :: 3.4 Programming Language :: Python :: 3.5 [files] packages = k8sclient [build_sphinx] source-dir = doc/source build-dir = doc/build all_files = 1 [upload_sphinx] upload-dir = doc/build/html [compile_catalog] directory = k8sclient/locale domain = k8sclient [update_catalog] domain = k8sclient output_dir = k8sclient/locale input_file = k8sclient/locale/k8sclient.pot [extract_messages] keywords = _ gettext ngettext l_ lazy_gettext mapping_file = babel.cfg output_file = k8sclient/locale/k8sclient.pot [egg_info] tag_build = tag_date = 0 python-k8sclient-0.4.0/babel.cfg0000664000567000056710000000002113046233226017617 0ustar jenkinsjenkins00000000000000[python: **.py] python-k8sclient-0.4.0/PKG-INFO0000664000567000056710000000657513046233470017213 0ustar jenkinsjenkins00000000000000Metadata-Version: 1.1 Name: python-k8sclient Version: 0.4.0 Summary: This is Kubernetes API python client code. This code is generated by swagger-codegen. Kubernetes provide swagger-spec to generate client code for different versions. The specs live in Kubernetes repo. Home-page: http://www.openstack.org/ Author: OpenStack Author-email: openstack-dev@lists.openstack.org License: UNKNOWN Description: ============================================= python-k8sclient - Kubernetes API client code ============================================= Overview -------- This is Kubernetes API python client code. This code is generated by swagger-codegen. Kubernetes provide swagger-spec to generate client code for different versions. The specs live in Kubernetes repo. * Free software: Apache license * Documentation: http://docs.openstack.org/developer/python-k8sclient * Source: http://git.openstack.org/cgit/openstack/python-k8sclient * Bugs: http://bugs.launchpad.net/python-k8sclient See also -------- * swagger-codegen: https://github.com/swagger-api/swagger-codegen * Kubernetes swagger-spec: https://github.com/GoogleCloudPlatform/kubernetes/tree/master/api/swagger-spec Prerequisites ------------- You need to install required packages for swagger codegen. Please refer to ``_ Steps to generate API client code --------------------------------- Steps to generate Kubernetes client code for v1: * Clone the python-k8sclient repo:: git clone https://git.openstack.org/openstack/python-k8sclient * Clone the swagger-codegen repo. It is recommended to checkout a release (e.g. v2.1.3) instead of using the master branch:: git clone https://github.com/swagger-api/swagger-codegen.git cd swagger-codegen/ git checkout tags/v2.1.3 * Build swagger-codegen:: mvn package * Update the v1.json from latest Kubernetes release:: curl -o ./k8sclient/templates/v1.json https://raw.githubusercontent.com/kubernetes/kubernetes/v1.2.2/api/swagger-spec/v1.json * Run below command to generate the API client code for Kubernetes:: cd .. java -jar ./swagger-codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar \ generate \ -i ./k8sclient/templates/v1.json \ -l python -o ./KubernetesClientCode Now you can check the code at location ./KubernetesClientCode. Platform: UNKNOWN Classifier: Environment :: OpenStack Classifier: Intended Audience :: Information Technology Classifier: Intended Audience :: System Administrators Classifier: License :: OSI Approved :: Apache Software License Classifier: Operating System :: POSIX :: Linux Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 python-k8sclient-0.4.0/ChangeLog0000664000567000056710000000507113046233467017664 0ustar jenkinsjenkins00000000000000CHANGES ======= 0.4.0 ----- * Fix empty object returned by successful response * Change assertTrue(isinstance()) by optimal assert * Cleanup tox.ini * Fix indentation in the README * Update README to use git.openstack.org * Deserialize Labels properly 0.3.0 ----- * Fixing patch_* commands execution * Using named logger instead of root logger * s/"Magnum"/"python-k8sclient" at README.rst * Add Python 3.5 classifier and venv * Fix default ip/port 0.2.0 ----- * Adding batch_v1 api support * Log info about K8S environment * Add test case for configmaps * Adding extensions_v1beta1 api support * Install Docker in kube-init.sh * Add a functional test target * Allow script to be executed from tox env * Add a init script for starting Kubernetes * Add More tests from Magnum * Default to application/json * Add python 3 support * Keep py3.X compatibility for urllib * TLS integration for latest pythonk8sclient * Fix up sanitize_for_serialization * Remove unsafe usage of eval * Run swagger codegen for latest Kubernetes API * Add default config for git-review * Fix package name in pbr VersionInfo call 0.1.0 ----- * Switch file location and repo path * Skip tests when Kubernetes is not running * Fix flake8 with minimal changes * Add missing requirement * Get tests working in py34 * Minimum sanity check tests * Get tests working * Oops! restore old README.rst * Add Cookie cutter generated files for OpenStack * Restructure directories * Add python 3 support * Do not use __builtin__ in python3 * Keep py3.X compatibility for urllib * Fix typos * Removed old k8s python client * Fix typo error * Make Kubernetes API call secure * TLS integration for latest pythonk8sclient * Migrate to Kubernetes Release 1 * Temporarily remove dependency on package certifi * If headerParams = None, don't use it to .update() * Update documentation for generating k8s v1 client * Avoid to use eval in pythonk8sclient * Checkout generated k8s client * Change ca to ca-cert for consistency in k8sclient * Adds TLS support in pythonk8sclient * Unknown type 'any' in pythonk8sclient removed * Eliminate eval from swagger.py in k8sclient * Fix the KeyError and change type 'any' in k8s client code * Return proper response object in Kubernetes APIs * Add license header to swagger.py * Fixing import error in kubernetes client code * Added support of Kubernetes API in magnum * Remove duplicate replacePod API * Add return response in some of Kubernetes APIs * Correct ImportError in python-k8sclient code * Validate scheme used in urlopen * Remove unsafe usage of eval * Adding support of python-k8client * Added .gitreview